fingerprintjs

Форк
0
/
global.d.ts 
64 строки · 1.8 Кб
1
/* Browser APIs not described by TypeScript */
2

3
interface Window {
4
  webkitOfflineAudioContext?: OfflineAudioContext
5
  openDatabase?(...args: unknown[]): void
6
  ApplePaySession?: ApplePaySessionConstructor
7
  __fpjs_d_m?: unknown
8
}
9

10
interface Navigator {
11
  oscpu?: string
12
  userLanguage?: string
13
  browserLanguage?: string
14
  systemLanguage?: string
15
  deviceMemory?: number
16
  cpuClass?: string
17
  readonly msMaxTouchPoints?: number
18
  connection?: {
19
    ontypechange?: () => void
20
  }
21
}
22

23
interface Document {
24
  msFullscreenElement?: typeof document.fullscreenElement
25
  mozFullScreenElement?: typeof document.fullscreenElement
26
  webkitFullscreenElement?: typeof document.fullscreenElement
27

28
  msExitFullscreen?: typeof document.exitFullscreen
29
  mozCancelFullScreen?: typeof document.exitFullscreen
30
  webkitExitFullscreen?: typeof document.exitFullscreen
31
}
32

33
interface Screen {
34
  availLeft?: number
35
  availTop?: number
36
}
37

38
interface Element {
39
  webkitRequestFullscreen?: typeof Element.prototype.requestFullscreen
40
}
41

42
interface CSSStyleDeclaration {
43
  zoom: string
44
  textSizeAdjust: string
45
}
46

47
/** @see https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api */
48
interface ApplePaySessionConstructor {
49
  /** @see https://developer.apple.com/documentation/apple_pay_on_the_web/apple_pay_js_api/creating_an_apple_pay_session */
50
  new (version: number, request: Record<never, never>): never
51
  /** @see https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778027-canmakepayments */
52
  canMakePayments(): boolean
53
}
54

55
interface HTMLAnchorElement {
56
  // See https://webkit.org/blog/11529/introducing-private-click-measurement-pcm/
57
  attributionSourceId?: number
58
  /** Before Safari 15.4. The value is a string in Safari 14. */
59
  attributionsourceid?: number | string
60
}
61

62
interface HTMLMediaElement {
63
  sinkId?: string
64
}
65

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.