mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 03:26:22 +00:00
1224c7d32f
* refactor(comments): move script to files for LSP, treesitter, and the whole galore. Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * fix(type): support removeEventListener with CustomEventMap Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * fix: parse bool to string first Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * chore: address comments and test on branch Signed-off-by: Aaron Pham <contact@aarnphm.xyz> * revert: remove comments section from main quartz pages Signed-off-by: Aaron Pham <contact@aarnphm.xyz> --------- Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
17 lines
558 B
TypeScript
17 lines
558 B
TypeScript
export declare global {
|
|
interface Document {
|
|
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
|
|
}
|
|
interface Window {
|
|
spaNavigate(url: URL, isBack: boolean = false)
|
|
addCleanup(fn: (...args: any[]) => void)
|
|
}
|
|
}
|