chore: add window.addCleanup() for cleaning up handlers
This commit is contained in:
1
globals.d.ts
vendored
1
globals.d.ts
vendored
@ -8,5 +8,6 @@ export declare global {
|
||||
}
|
||||
interface Window {
|
||||
spaNavigate(url: URL, isBack: boolean = false)
|
||||
addCleanup(fn: (...args: any[]) => void)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user