typescript 4.5.5 → 4.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/lib/cs/diagnosticMessages.generated.json +23 -10
  2. package/lib/de/diagnosticMessages.generated.json +23 -10
  3. package/lib/es/diagnosticMessages.generated.json +23 -10
  4. package/lib/fr/diagnosticMessages.generated.json +23 -10
  5. package/lib/it/diagnosticMessages.generated.json +23 -10
  6. package/lib/ja/diagnosticMessages.generated.json +23 -10
  7. package/lib/ko/diagnosticMessages.generated.json +23 -10
  8. package/lib/lib.dom.d.ts +216 -58
  9. package/lib/lib.dom.iterable.d.ts +11 -0
  10. package/lib/lib.es2015.iterable.d.ts +2 -1
  11. package/lib/lib.es2020.intl.d.ts +8 -3
  12. package/lib/lib.es2022.array.d.ts +123 -0
  13. package/lib/lib.es2022.d.ts +25 -0
  14. package/lib/lib.es2022.error.d.ts +75 -0
  15. package/lib/lib.es2022.full.d.ts +25 -0
  16. package/lib/lib.es2022.object.d.ts +28 -0
  17. package/lib/lib.es2022.string.d.ts +27 -0
  18. package/lib/lib.es5.d.ts +1 -3
  19. package/lib/lib.esnext.d.ts +1 -1
  20. package/lib/lib.webworker.d.ts +127 -16
  21. package/lib/lib.webworker.iterable.d.ts +7 -0
  22. package/lib/pl/diagnosticMessages.generated.json +23 -10
  23. package/lib/protocol.d.ts +2 -0
  24. package/lib/pt-br/diagnosticMessages.generated.json +23 -10
  25. package/lib/ru/diagnosticMessages.generated.json +23 -10
  26. package/lib/tr/diagnosticMessages.generated.json +23 -10
  27. package/lib/tsc.js +2474 -1549
  28. package/lib/tsserver.js +4450 -2573
  29. package/lib/tsserverlibrary.d.ts +32 -16
  30. package/lib/tsserverlibrary.js +4421 -2572
  31. package/lib/typescript.d.ts +29 -16
  32. package/lib/typescript.js +4343 -2544
  33. package/lib/typescriptServices.d.ts +29 -16
  34. package/lib/typescriptServices.js +4343 -2544
  35. package/lib/typingsInstaller.js +3132 -2049
  36. package/lib/zh-cn/diagnosticMessages.generated.json +23 -10
  37. package/lib/zh-tw/diagnosticMessages.generated.json +23 -10
  38. package/package.json +3 -2
package/lib/lib.dom.d.ts CHANGED
@@ -227,7 +227,7 @@ interface ComputedEffectTiming extends EffectTiming {
227
227
  currentIteration?: number | null;
228
228
  endTime?: CSSNumberish;
229
229
  localTime?: CSSNumberish | null;
230
- progress?: CSSNumberish | null;
230
+ progress?: number | null;
231
231
  startTime?: CSSNumberish;
232
232
  }
233
233
 
@@ -284,8 +284,8 @@ interface CredentialRequestOptions {
284
284
  }
285
285
 
286
286
  interface CryptoKeyPair {
287
- privateKey?: CryptoKey;
288
- publicKey?: CryptoKey;
287
+ privateKey: CryptoKey;
288
+ publicKey: CryptoKey;
289
289
  }
290
290
 
291
291
  interface CustomEventInit<T = any> extends EventInit {
@@ -487,6 +487,18 @@ interface FileSystemFlags {
487
487
  exclusive?: boolean;
488
488
  }
489
489
 
490
+ interface FileSystemGetDirectoryOptions {
491
+ create?: boolean;
492
+ }
493
+
494
+ interface FileSystemGetFileOptions {
495
+ create?: boolean;
496
+ }
497
+
498
+ interface FileSystemRemoveOptions {
499
+ recursive?: boolean;
500
+ }
501
+
490
502
  interface FocusEventInit extends UIEventInit {
491
503
  relatedTarget?: EventTarget | null;
492
504
  }
@@ -691,6 +703,24 @@ interface KeyframeEffectOptions extends EffectTiming {
691
703
  pseudoElement?: string | null;
692
704
  }
693
705
 
706
+ interface LockInfo {
707
+ clientId?: string;
708
+ mode?: LockMode;
709
+ name?: string;
710
+ }
711
+
712
+ interface LockManagerSnapshot {
713
+ held?: LockInfo[];
714
+ pending?: LockInfo[];
715
+ }
716
+
717
+ interface LockOptions {
718
+ ifAvailable?: boolean;
719
+ mode?: LockMode;
720
+ signal?: AbortSignal;
721
+ steal?: boolean;
722
+ }
723
+
694
724
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
695
725
  configuration?: MediaDecodingConfiguration;
696
726
  }
@@ -940,7 +970,7 @@ interface NotificationOptions {
940
970
  requireInteraction?: boolean;
941
971
  silent?: boolean;
942
972
  tag?: string;
943
- timestamp?: DOMTimeStamp;
973
+ timestamp?: EpochTimeStamp;
944
974
  vibrate?: VibratePattern;
945
975
  }
946
976
 
@@ -1172,7 +1202,7 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
1172
1202
 
1173
1203
  interface PushSubscriptionJSON {
1174
1204
  endpoint?: string;
1175
- expirationTime?: DOMTimeStamp | null;
1205
+ expirationTime?: EpochTimeStamp | null;
1176
1206
  keys?: Record<string, string>;
1177
1207
  }
1178
1208
 
@@ -1199,7 +1229,7 @@ interface RTCAnswerOptions extends RTCOfferAnswerOptions {
1199
1229
  }
1200
1230
 
1201
1231
  interface RTCCertificateExpiration {
1202
- expires?: DOMTimeStamp;
1232
+ expires?: number;
1203
1233
  }
1204
1234
 
1205
1235
  interface RTCConfiguration {
@@ -1648,7 +1678,7 @@ interface StreamPipeOptions {
1648
1678
  }
1649
1679
 
1650
1680
  interface StructuredSerializeOptions {
1651
- transfer?: any[];
1681
+ transfer?: Transferable[];
1652
1682
  }
1653
1683
 
1654
1684
  interface SubmitEventInit extends EventInit {
@@ -1824,42 +1854,42 @@ interface ANGLE_instanced_arrays {
1824
1854
  }
1825
1855
 
1826
1856
  interface ARIAMixin {
1827
- ariaAtomic: string;
1828
- ariaAutoComplete: string;
1829
- ariaBusy: string;
1830
- ariaChecked: string;
1831
- ariaColCount: string;
1832
- ariaColIndex: string;
1833
- ariaColSpan: string;
1834
- ariaCurrent: string;
1835
- ariaDisabled: string;
1836
- ariaExpanded: string;
1837
- ariaHasPopup: string;
1838
- ariaHidden: string;
1839
- ariaKeyShortcuts: string;
1840
- ariaLabel: string;
1841
- ariaLevel: string;
1842
- ariaLive: string;
1843
- ariaModal: string;
1844
- ariaMultiLine: string;
1845
- ariaMultiSelectable: string;
1846
- ariaOrientation: string;
1847
- ariaPlaceholder: string;
1848
- ariaPosInSet: string;
1849
- ariaPressed: string;
1850
- ariaReadOnly: string;
1851
- ariaRequired: string;
1852
- ariaRoleDescription: string;
1853
- ariaRowCount: string;
1854
- ariaRowIndex: string;
1855
- ariaRowSpan: string;
1856
- ariaSelected: string;
1857
- ariaSetSize: string;
1858
- ariaSort: string;
1859
- ariaValueMax: string;
1860
- ariaValueMin: string;
1861
- ariaValueNow: string;
1862
- ariaValueText: string;
1857
+ ariaAtomic: string | null;
1858
+ ariaAutoComplete: string | null;
1859
+ ariaBusy: string | null;
1860
+ ariaChecked: string | null;
1861
+ ariaColCount: string | null;
1862
+ ariaColIndex: string | null;
1863
+ ariaColSpan: string | null;
1864
+ ariaCurrent: string | null;
1865
+ ariaDisabled: string | null;
1866
+ ariaExpanded: string | null;
1867
+ ariaHasPopup: string | null;
1868
+ ariaHidden: string | null;
1869
+ ariaKeyShortcuts: string | null;
1870
+ ariaLabel: string | null;
1871
+ ariaLevel: string | null;
1872
+ ariaLive: string | null;
1873
+ ariaModal: string | null;
1874
+ ariaMultiLine: string | null;
1875
+ ariaMultiSelectable: string | null;
1876
+ ariaOrientation: string | null;
1877
+ ariaPlaceholder: string | null;
1878
+ ariaPosInSet: string | null;
1879
+ ariaPressed: string | null;
1880
+ ariaReadOnly: string | null;
1881
+ ariaRequired: string | null;
1882
+ ariaRoleDescription: string | null;
1883
+ ariaRowCount: string | null;
1884
+ ariaRowIndex: string | null;
1885
+ ariaRowSpan: string | null;
1886
+ ariaSelected: string | null;
1887
+ ariaSetSize: string | null;
1888
+ ariaSort: string | null;
1889
+ ariaValueMax: string | null;
1890
+ ariaValueMin: string | null;
1891
+ ariaValueNow: string | null;
1892
+ ariaValueText: string | null;
1863
1893
  }
1864
1894
 
1865
1895
  /** A controller object that allows you to abort one or more DOM requests as and when desired. */
@@ -1867,7 +1897,7 @@ interface AbortController {
1867
1897
  /** Returns the AbortSignal object associated with this object. */
1868
1898
  readonly signal: AbortSignal;
1869
1899
  /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
1870
- abort(): void;
1900
+ abort(reason?: any): void;
1871
1901
  }
1872
1902
 
1873
1903
  declare var AbortController: {
@@ -2954,6 +2984,7 @@ interface CSSStyleDeclaration {
2954
2984
  scrollSnapAlign: string;
2955
2985
  scrollSnapStop: string;
2956
2986
  scrollSnapType: string;
2987
+ scrollbarGutter: string;
2957
2988
  shapeImageThreshold: string;
2958
2989
  shapeMargin: string;
2959
2990
  shapeOutside: string;
@@ -3251,9 +3282,23 @@ declare var CacheStorage: {
3251
3282
  new(): CacheStorage;
3252
3283
  };
3253
3284
 
3285
+ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
3286
+ readonly canvas: HTMLCanvasElement;
3287
+ requestFrame(): void;
3288
+ addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3289
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3290
+ removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3291
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3292
+ }
3293
+
3294
+ declare var CanvasCaptureMediaStreamTrack: {
3295
+ prototype: CanvasCaptureMediaStreamTrack;
3296
+ new(): CanvasCaptureMediaStreamTrack;
3297
+ };
3298
+
3254
3299
  interface CanvasCompositing {
3255
3300
  globalAlpha: number;
3256
- globalCompositeOperation: string;
3301
+ globalCompositeOperation: GlobalCompositeOperation;
3257
3302
  }
3258
3303
 
3259
3304
  interface CanvasDrawImage {
@@ -3279,6 +3324,7 @@ interface CanvasDrawPath {
3279
3324
  interface CanvasFillStrokeStyles {
3280
3325
  fillStyle: string | CanvasGradient | CanvasPattern;
3281
3326
  strokeStyle: string | CanvasGradient | CanvasPattern;
3327
+ createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
3282
3328
  createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
3283
3329
  createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
3284
3330
  createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
@@ -3602,6 +3648,8 @@ interface Crypto {
3602
3648
  /** Available only in secure contexts. */
3603
3649
  readonly subtle: SubtleCrypto;
3604
3650
  getRandomValues<T extends ArrayBufferView | null>(array: T): T;
3651
+ /** Available only in secure contexts. */
3652
+ randomUUID(): string;
3605
3653
  }
3606
3654
 
3607
3655
  declare var Crypto: {
@@ -4308,7 +4356,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4308
4356
  readonly timeline: DocumentTimeline;
4309
4357
  /** Contains the title of the document. */
4310
4358
  title: string;
4311
- readonly visibilityState: VisibilityState;
4359
+ readonly visibilityState: DocumentVisibilityState;
4312
4360
  /**
4313
4361
  * Sets or gets the color of the links that the user has visited.
4314
4362
  * @deprecated
@@ -4948,8 +4996,10 @@ interface EventSource extends EventTarget {
4948
4996
  readonly CONNECTING: number;
4949
4997
  readonly OPEN: number;
4950
4998
  addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
4999
+ addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
4951
5000
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
4952
5001
  removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
5002
+ removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
4953
5003
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
4954
5004
  }
4955
5005
 
@@ -5091,6 +5141,20 @@ declare var FileSystemDirectoryEntry: {
5091
5141
  new(): FileSystemDirectoryEntry;
5092
5142
  };
5093
5143
 
5144
+ /** Available only in secure contexts. */
5145
+ interface FileSystemDirectoryHandle extends FileSystemHandle {
5146
+ readonly kind: "directory";
5147
+ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
5148
+ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
5149
+ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
5150
+ resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
5151
+ }
5152
+
5153
+ declare var FileSystemDirectoryHandle: {
5154
+ prototype: FileSystemDirectoryHandle;
5155
+ new(): FileSystemDirectoryHandle;
5156
+ };
5157
+
5094
5158
  interface FileSystemDirectoryReader {
5095
5159
  readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
5096
5160
  }
@@ -5123,6 +5187,29 @@ declare var FileSystemFileEntry: {
5123
5187
  new(): FileSystemFileEntry;
5124
5188
  };
5125
5189
 
5190
+ /** Available only in secure contexts. */
5191
+ interface FileSystemFileHandle extends FileSystemHandle {
5192
+ readonly kind: "file";
5193
+ getFile(): Promise<File>;
5194
+ }
5195
+
5196
+ declare var FileSystemFileHandle: {
5197
+ prototype: FileSystemFileHandle;
5198
+ new(): FileSystemFileHandle;
5199
+ };
5200
+
5201
+ /** Available only in secure contexts. */
5202
+ interface FileSystemHandle {
5203
+ readonly kind: FileSystemHandleKind;
5204
+ readonly name: string;
5205
+ isSameEntry(other: FileSystemHandle): Promise<boolean>;
5206
+ }
5207
+
5208
+ declare var FileSystemHandle: {
5209
+ prototype: FileSystemHandle;
5210
+ new(): FileSystemHandle;
5211
+ };
5212
+
5126
5213
  /** Focus-related events like focus, blur, focusin, or focusout. */
5127
5214
  interface FocusEvent extends UIEvent {
5128
5215
  readonly relatedTarget: EventTarget | null;
@@ -5325,7 +5412,7 @@ declare var GeolocationCoordinates: {
5325
5412
  /** Available only in secure contexts. */
5326
5413
  interface GeolocationPosition {
5327
5414
  readonly coords: GeolocationCoordinates;
5328
- readonly timestamp: DOMTimeStamp;
5415
+ readonly timestamp: EpochTimeStamp;
5329
5416
  }
5330
5417
 
5331
5418
  declare var GeolocationPosition: {
@@ -5424,6 +5511,7 @@ interface GlobalEventHandlersEventMap {
5424
5511
  "select": Event;
5425
5512
  "selectionchange": Event;
5426
5513
  "selectstart": Event;
5514
+ "slotchange": Event;
5427
5515
  "stalled": Event;
5428
5516
  "submit": SubmitEvent;
5429
5517
  "suspend": Event;
@@ -5658,6 +5746,7 @@ interface GlobalEventHandlers {
5658
5746
  * @param ev The event.
5659
5747
  */
5660
5748
  onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5749
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
5661
5750
  /**
5662
5751
  * Occurs when the seek operation ends.
5663
5752
  * @param ev The event.
@@ -5675,6 +5764,7 @@ interface GlobalEventHandlers {
5675
5764
  onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5676
5765
  onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5677
5766
  onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5767
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5678
5768
  /**
5679
5769
  * Occurs when the download has stopped.
5680
5770
  * @param ev The event.
@@ -6640,7 +6730,8 @@ interface HTMLImageElement extends HTMLElement {
6640
6730
  hspace: number;
6641
6731
  /** Sets or retrieves whether the image is a server-side image map. */
6642
6732
  isMap: boolean;
6643
- loading: string;
6733
+ /** Sets or retrieves the policy for loading image elements that are outside the viewport. */
6734
+ loading: "eager" | "lazy";
6644
6735
  /**
6645
6736
  * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
6646
6737
  * @deprecated
@@ -7098,6 +7189,7 @@ interface HTMLMetaElement extends HTMLElement {
7098
7189
  content: string;
7099
7190
  /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
7100
7191
  httpEquiv: string;
7192
+ media: string;
7101
7193
  /** Sets or retrieves the value specified in the content attribute of the meta object. */
7102
7194
  name: string;
7103
7195
  /**
@@ -7617,6 +7709,7 @@ declare var HTMLSlotElement: {
7617
7709
 
7618
7710
  /** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
7619
7711
  interface HTMLSourceElement extends HTMLElement {
7712
+ height: number;
7620
7713
  /** Gets or sets the intended media type of the media source. */
7621
7714
  media: string;
7622
7715
  sizes: string;
@@ -7625,6 +7718,7 @@ interface HTMLSourceElement extends HTMLElement {
7625
7718
  srcset: string;
7626
7719
  /** Gets or sets the MIME type of a media resource. */
7627
7720
  type: string;
7721
+ width: number;
7628
7722
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
7629
7723
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
7630
7724
  removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -8580,6 +8674,7 @@ interface IDBTransactionEventMap {
8580
8674
  interface IDBTransaction extends EventTarget {
8581
8675
  /** Returns the transaction's connection. */
8582
8676
  readonly db: IDBDatabase;
8677
+ readonly durability: IDBTransactionDurability;
8583
8678
  /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
8584
8679
  readonly error: DOMException | null;
8585
8680
  /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -8682,6 +8777,14 @@ interface InnerHTML {
8682
8777
  innerHTML: string;
8683
8778
  }
8684
8779
 
8780
+ interface InputDeviceInfo extends MediaDeviceInfo {
8781
+ }
8782
+
8783
+ declare var InputDeviceInfo: {
8784
+ prototype: InputDeviceInfo;
8785
+ new(): InputDeviceInfo;
8786
+ };
8787
+
8685
8788
  interface InputEvent extends UIEvent {
8686
8789
  readonly data: string | null;
8687
8790
  readonly dataTransfer: DataTransfer | null;
@@ -8851,6 +8954,29 @@ declare var Location: {
8851
8954
  new(): Location;
8852
8955
  };
8853
8956
 
8957
+ /** Available only in secure contexts. */
8958
+ interface Lock {
8959
+ readonly mode: LockMode;
8960
+ readonly name: string;
8961
+ }
8962
+
8963
+ declare var Lock: {
8964
+ prototype: Lock;
8965
+ new(): Lock;
8966
+ };
8967
+
8968
+ /** Available only in secure contexts. */
8969
+ interface LockManager {
8970
+ query(): Promise<LockManagerSnapshot>;
8971
+ request(name: string, callback: LockGrantedCallback): Promise<any>;
8972
+ request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
8973
+ }
8974
+
8975
+ declare var LockManager: {
8976
+ prototype: LockManager;
8977
+ new(): LockManager;
8978
+ };
8979
+
8854
8980
  interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
8855
8981
  }
8856
8982
 
@@ -10177,6 +10303,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
10177
10303
  readonly processingEnd: DOMHighResTimeStamp;
10178
10304
  readonly processingStart: DOMHighResTimeStamp;
10179
10305
  readonly target: Node | null;
10306
+ toJSON(): any;
10180
10307
  }
10181
10308
 
10182
10309
  declare var PerformanceEventTiming: {
@@ -10583,7 +10710,7 @@ declare var PublicKeyCredential: {
10583
10710
  */
10584
10711
  interface PushManager {
10585
10712
  getSubscription(): Promise<PushSubscription | null>;
10586
- permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
10713
+ permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
10587
10714
  subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
10588
10715
  }
10589
10716
 
@@ -10621,7 +10748,7 @@ declare var PushSubscriptionOptions: {
10621
10748
  };
10622
10749
 
10623
10750
  interface RTCCertificate {
10624
- readonly expires: DOMTimeStamp;
10751
+ readonly expires: EpochTimeStamp;
10625
10752
  getFingerprints(): RTCDtlsFingerprint[];
10626
10753
  }
10627
10754
 
@@ -10899,6 +11026,7 @@ interface RTCRtpTransceiver {
10899
11026
  readonly mid: string | null;
10900
11027
  readonly receiver: RTCRtpReceiver;
10901
11028
  readonly sender: RTCRtpSender;
11029
+ setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
10902
11030
  stop(): void;
10903
11031
  }
10904
11032
 
@@ -11113,6 +11241,7 @@ interface ResizeObserverEntry {
11113
11241
  readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
11114
11242
  readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
11115
11243
  readonly contentRect: DOMRectReadOnly;
11244
+ readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
11116
11245
  readonly target: Element;
11117
11246
  }
11118
11247
 
@@ -13073,11 +13202,21 @@ declare var ServiceWorkerRegistration: {
13073
13202
  new(): ServiceWorkerRegistration;
13074
13203
  };
13075
13204
 
13205
+ interface ShadowRootEventMap {
13206
+ "slotchange": Event;
13207
+ }
13208
+
13076
13209
  interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
13077
13210
  readonly delegatesFocus: boolean;
13078
13211
  readonly host: Element;
13079
13212
  readonly mode: ShadowRootMode;
13213
+ onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
13214
+ readonly slotAssignment: SlotAssignmentMode;
13080
13215
  /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
13216
+ addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13217
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
13218
+ removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
13219
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
13081
13220
  }
13082
13221
 
13083
13222
  declare var ShadowRoot: {
@@ -13370,6 +13509,7 @@ declare var StorageEvent: {
13370
13509
  /** Available only in secure contexts. */
13371
13510
  interface StorageManager {
13372
13511
  estimate(): Promise<StorageEstimate>;
13512
+ getDirectory(): Promise<FileSystemDirectoryHandle>;
13373
13513
  persist(): Promise<boolean>;
13374
13514
  persisted(): Promise<boolean>;
13375
13515
  }
@@ -14131,6 +14271,13 @@ interface WEBGL_lose_context {
14131
14271
  restoreContext(): void;
14132
14272
  }
14133
14273
 
14274
+ interface WEBGL_multi_draw {
14275
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14276
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
14277
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14278
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
14279
+ }
14280
+
14134
14281
  /** A WaveShaperNode always has exactly one input and one output. */
14135
14282
  interface WaveShaperNode extends AudioNode {
14136
14283
  curve: Float32Array | null;
@@ -16296,12 +16443,13 @@ interface WindowOrWorkerGlobalScope {
16296
16443
  readonly performance: Performance;
16297
16444
  atob(data: string): string;
16298
16445
  btoa(data: string): string;
16299
- clearInterval(handle?: number): void;
16300
- clearTimeout(handle?: number): void;
16446
+ clearInterval(id?: number): void;
16447
+ clearTimeout(id?: number): void;
16301
16448
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16302
16449
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
16303
16450
  fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
16304
16451
  queueMicrotask(callback: VoidFunction): void;
16452
+ reportError(e: any): void;
16305
16453
  setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
16306
16454
  setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
16307
16455
  }
@@ -16790,7 +16938,7 @@ declare namespace WebAssembly {
16790
16938
 
16791
16939
  type ImportExportKind = "function" | "global" | "memory" | "table";
16792
16940
  type TableKind = "anyfunc" | "externref";
16793
- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
16941
+ type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
16794
16942
  type ExportValue = Function | Global | Memory | Table;
16795
16943
  type Exports = Record<string, ExportValue>;
16796
16944
  type ImportValue = ExportValue | number;
@@ -16852,6 +17000,10 @@ interface IntersectionObserverCallback {
16852
17000
  (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
16853
17001
  }
16854
17002
 
17003
+ interface LockGrantedCallback {
17004
+ (lock: Lock | null): any;
17005
+ }
17006
+
16855
17007
  interface MediaSessionActionHandler {
16856
17008
  (details: MediaSessionActionDetails): void;
16857
17009
  }
@@ -17480,6 +17632,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
17480
17632
  * @param ev The event.
17481
17633
  */
17482
17634
  declare var onscroll: ((this: Window, ev: Event) => any) | null;
17635
+ declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
17483
17636
  /**
17484
17637
  * Occurs when the seek operation ends.
17485
17638
  * @param ev The event.
@@ -17497,6 +17650,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
17497
17650
  declare var onselect: ((this: Window, ev: Event) => any) | null;
17498
17651
  declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
17499
17652
  declare var onselectstart: ((this: Window, ev: Event) => any) | null;
17653
+ declare var onslotchange: ((this: Window, ev: Event) => any) | null;
17500
17654
  /**
17501
17655
  * Occurs when the download has stopped.
17502
17656
  * @param ev The event.
@@ -17570,12 +17724,13 @@ declare var origin: string;
17570
17724
  declare var performance: Performance;
17571
17725
  declare function atob(data: string): string;
17572
17726
  declare function btoa(data: string): string;
17573
- declare function clearInterval(handle?: number): void;
17574
- declare function clearTimeout(handle?: number): void;
17727
+ declare function clearInterval(id?: number): void;
17728
+ declare function clearTimeout(id?: number): void;
17575
17729
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17576
17730
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
17577
17731
  declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
17578
17732
  declare function queueMicrotask(callback: VoidFunction): void;
17733
+ declare function reportError(e: any): void;
17579
17734
  declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
17580
17735
  declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
17581
17736
  declare var sessionStorage: Storage;
@@ -17600,7 +17755,7 @@ type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
17600
17755
  type ConstrainDouble = number | ConstrainDoubleRange;
17601
17756
  type ConstrainULong = number | ConstrainULongRange;
17602
17757
  type DOMHighResTimeStamp = number;
17603
- type DOMTimeStamp = number;
17758
+ type EpochTimeStamp = number;
17604
17759
  type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
17605
17760
  type Float32List = Float32Array | GLfloat[];
17606
17761
  type FormDataEntryValue = File | string;
@@ -17684,17 +17839,21 @@ type DirectionSetting = "" | "lr" | "rl";
17684
17839
  type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
17685
17840
  type DistanceModelType = "exponential" | "inverse" | "linear";
17686
17841
  type DocumentReadyState = "complete" | "interactive" | "loading";
17842
+ type DocumentVisibilityState = "hidden" | "visible";
17687
17843
  type EndOfStreamError = "decode" | "network";
17688
17844
  type EndingType = "native" | "transparent";
17845
+ type FileSystemHandleKind = "directory" | "file";
17689
17846
  type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
17690
17847
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
17691
17848
  type FontFaceSetLoadStatus = "loaded" | "loading";
17692
17849
  type FullscreenNavigationUI = "auto" | "hide" | "show";
17693
17850
  type GamepadHapticActuatorType = "vibration";
17694
17851
  type GamepadMappingType = "" | "standard" | "xr-standard";
17852
+ type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
17695
17853
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
17696
17854
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
17697
17855
  type IDBRequestReadyState = "done" | "pending";
17856
+ type IDBTransactionDurability = "default" | "relaxed" | "strict";
17698
17857
  type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
17699
17858
  type ImageOrientation = "flipY" | "none";
17700
17859
  type ImageSmoothingQuality = "high" | "low" | "medium";
@@ -17703,6 +17862,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
17703
17862
  type KeyType = "private" | "public" | "secret";
17704
17863
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
17705
17864
  type LineAlignSetting = "center" | "end" | "start";
17865
+ type LockMode = "exclusive" | "shared";
17706
17866
  type MediaDecodingType = "file" | "media-source" | "webrtc";
17707
17867
  type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
17708
17868
  type MediaEncodingType = "record" | "webrtc";
@@ -17732,7 +17892,6 @@ type PremultiplyAlpha = "default" | "none" | "premultiply";
17732
17892
  type PresentationStyle = "attachment" | "inline" | "unspecified";
17733
17893
  type PublicKeyCredentialType = "public-key";
17734
17894
  type PushEncryptionKeyName = "auth" | "p256dh";
17735
- type PushPermissionState = "denied" | "granted" | "prompt";
17736
17895
  type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
17737
17896
  type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
17738
17897
  type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
@@ -17785,7 +17944,6 @@ type TouchType = "direct" | "stylus";
17785
17944
  type TransferFunction = "hlg" | "pq" | "srgb";
17786
17945
  type UserVerificationRequirement = "discouraged" | "preferred" | "required";
17787
17946
  type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
17788
- type VisibilityState = "hidden" | "visible";
17789
17947
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
17790
17948
  type WorkerType = "classic" | "module";
17791
17949
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
@@ -188,6 +188,10 @@ interface PluginArray {
188
188
  [Symbol.iterator](): IterableIterator<Plugin>;
189
189
  }
190
190
 
191
+ interface RTCRtpTransceiver {
192
+ setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
193
+ }
194
+
191
195
  interface RTCStatsReport extends ReadonlyMap<string, any> {
192
196
  }
193
197
 
@@ -263,6 +267,13 @@ interface WEBGL_draw_buffers {
263
267
  drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
264
268
  }
265
269
 
270
+ interface WEBGL_multi_draw {
271
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
272
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
273
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
274
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
275
+ }
276
+
266
277
  interface WebGL2RenderingContextBase {
267
278
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
268
279
  clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
@@ -157,7 +157,8 @@ interface ReadonlyMap<K, V> {
157
157
  }
158
158
 
159
159
  interface MapConstructor {
160
- new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
160
+ new(): Map<any, any>;
161
+ new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
161
162
  }
162
163
 
163
164
  interface WeakMap<K extends object, V> { }