quartz/globals.d.ts

18 lines
558 B
TypeScript
Raw Normal View History

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