quartz-research-note/globals.d.ts

14 lines
409 B
TypeScript
Raw Normal View History

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