-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.d.ts
More file actions
32 lines (32 loc) · 1.07 KB
/
globals.d.ts
File metadata and controls
32 lines (32 loc) · 1.07 KB
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
28
29
30
31
32
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)
posthog?: {
capture: (event: string, properties?: Record<string, any>) => void
identify: (userId: string, properties?: Record<string, any>) => void
reset: () => void
}
// PDF.js and annotation viewer state
pdfjsLib?: any
currentPdfDocument?: any
currentPdfUrl?: string | null
pdfTextData?: any[]
pdfScale?: number
annotationsData?: any[]
renderHighlights?: (annotationId: string) => void
renderAllHighlights?: () => void
setActiveHighlight?: (annotationId: string) => void
}
}