From 9555407f65097cfb244d9994c605a7b98765a9a6 Mon Sep 17 00:00:00 2001 From: Aaron Pham <29749331+aarnphm@users.noreply.github.com> Date: Mon, 29 Jan 2024 19:26:47 -0500 Subject: [PATCH] fix(type): make sure dispatchEvent also accept UIEvent (#760) Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- globals.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/globals.d.ts b/globals.d.ts index 4473d59..0509f26 100644 --- a/globals.d.ts +++ b/globals.d.ts @@ -4,7 +4,7 @@ export declare global { type: K, listener: (this: Document, ev: CustomEventMap[K]) => void, ): void - dispatchEvent(ev: CustomEventMap[K]): void + dispatchEvent(ev: CustomEventMap[K] | UIEvent): void } interface Window { spaNavigate(url: URL, isBack: boolean = false)