fingerprintjs
64 строки · 1.8 Кб
1/* Browser APIs not described by TypeScript */
2
3interface Window {4webkitOfflineAudioContext?: OfflineAudioContext5openDatabase?(...args: unknown[]): void6ApplePaySession?: ApplePaySessionConstructor7__fpjs_d_m?: unknown8}
9
10interface Navigator {11oscpu?: string12userLanguage?: string13browserLanguage?: string14systemLanguage?: string15deviceMemory?: number16cpuClass?: string17readonly msMaxTouchPoints?: number18connection?: {19ontypechange?: () => void20}21}
22
23interface Document {24msFullscreenElement?: typeof document.fullscreenElement25mozFullScreenElement?: typeof document.fullscreenElement26webkitFullscreenElement?: typeof document.fullscreenElement27
28msExitFullscreen?: typeof document.exitFullscreen29mozCancelFullScreen?: typeof document.exitFullscreen30webkitExitFullscreen?: typeof document.exitFullscreen31}
32
33interface Screen {34availLeft?: number35availTop?: number36}
37
38interface Element {39webkitRequestFullscreen?: typeof Element.prototype.requestFullscreen40}
41
42interface CSSStyleDeclaration {43zoom: string44textSizeAdjust: string45}
46
47/** @see https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api */
48interface ApplePaySessionConstructor {49/** @see https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api/creating_an_apple_pay_session */50new (version: number, request: Record<never, never>): never51/** @see https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778027-canmakepayments */52canMakePayments(): boolean53}
54
55interface HTMLAnchorElement {56// See https://webkit.org/blog/11529/introducing-private-click-measurement-pcm/57attributionSourceId?: number58/** Before Safari 15.4. The value is a string in Safari 14. */59attributionsourceid?: number | string60}
61
62interface HTMLMediaElement {63sinkId?: string64}
65