Update dependency typescript to v6 (#32927)

* Update dependency typescript to v6

* Switch to unplugin-vts

Workaround for https://github.com/qmhc/unplugin-dts/issues/467

And tweak tsconfigs

* tweak tsconfig

* Make tsc happy

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
renovate[bot]
2026-04-22 12:28:54 +00:00
committed by GitHub
co-authored by renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Michael Telatynski
parent 021e222719
commit 2d16498fe6
32 changed files with 403 additions and 357 deletions
@@ -53,6 +53,8 @@ class Toasts {
* @returns the Locator for the matching toast, or null if it is not
* visible. (null will only be returned if `required` is false.)
*/
public async getToast(title: string, timeout?: number, required?: true): Promise<Locator>;
public async getToast(title: string, timeout: number | undefined, required: false): Promise<Locator | null>;
public async getToast(title: string, timeout?: number, required = true): Promise<Locator | null> {
const toast = this.page.locator(".mx_Toast_toast", { hasText: title }).first();
@@ -148,7 +150,12 @@ async function clickToastButton(
timeout?: number,
required = true,
): Promise<void> {
const toast = await toasts.getToast(title, timeout, required);
let toast: Locator | null;
if (required) {
toast = await toasts.getToast(title, timeout, true);
} else {
toast = await toasts.getToast(title, timeout, false);
}
if (toast) {
await toast.locator(`.mx_Toast_buttons button[data-kind="${button}"]`).click();