2023-06-20 10:37:45 +07:00
|
|
|
export declare global {
|
|
|
|
interface Document {
|
2023-07-23 07:27:41 +07:00
|
|
|
addEventListener<K extends keyof CustomEventMap>(
|
|
|
|
type: K,
|
|
|
|
listener: (this: Document, ev: CustomEventMap[K]) => void,
|
|
|
|
): void
|
2024-08-06 02:17:11 +07:00
|
|
|
removeEventListener<K extends keyof CustomEventMap>(
|
|
|
|
type: K,
|
|
|
|
listener: (this: Document, ev: CustomEventMap[K]) => void,
|
|
|
|
): void
|
2024-01-30 07:26:47 +07:00
|
|
|
dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K] | UIEvent): void
|
2023-06-20 10:37:45 +07:00
|
|
|
}
|
|
|
|
interface Window {
|
|
|
|
spaNavigate(url: URL, isBack: boolean = false)
|
2024-02-02 11:07:14 +07:00
|
|
|
addCleanup(fn: (...args: any[]) => void)
|
2023-06-20 10:37:45 +07:00
|
|
|
}
|
|
|
|
}
|