fix(type): make sure dispatchEvent also accept UIEvent (#760)

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron Pham 2024-01-29 19:26:47 -05:00 committed by GitHub
parent fbb4d7e399
commit 9555407f65
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
globals.d.ts vendored
View file

@ -4,7 +4,7 @@ export declare global {
type: K,
listener: (this: Document, ev: CustomEventMap[K]) => void,
): void
dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K]): void
dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K] | UIEvent): void
}
interface Window {
spaNavigate(url: URL, isBack: boolean = false)