generated from jackyzha0/quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.d.ts
27 lines (26 loc) · 854 Bytes
/
globals.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)
notifyNav(url: FullSlug)
addCleanup(fn: (...args: any[]) => void)
stacked: import("./quartz/plugins/types").Notes
plausible: {
(eventName: string, options: { props: { path: string } }): void
}
twttr: {
ready(f: (twttr: any) => void): void
}
mermaid: typeof import("mermaid/dist/mermaid").default
}
}