rizaldy.club/globals.d.ts

11 lines
343 B
TypeScript
Raw Normal View History

2023-06-20 10:37:45 +07:00
export declare global {
interface Document {
addEventListener<K extends keyof CustomEventMap>(type: K,
listener: (this: Document, ev: CustomEventMap[K]) => void): void;
dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K]): void;
}
interface Window {
spaNavigate(url: URL, isBack: boolean = false)
}
}