@types/web 0.0.71 → 0.0.73

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.
package/LICENSE.txt ADDED
@@ -0,0 +1,55 @@
1
+ Apache License
2
+
3
+ Version 2.0, January 2004
4
+
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
16
+
17
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
18
+
19
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
20
+
21
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
22
+
23
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
24
+
25
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
26
+
27
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
28
+
29
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
30
+
31
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
32
+
33
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
34
+
35
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
36
+
37
+ You must give any other recipients of the Work or Derivative Works a copy of this License; and
38
+
39
+ You must cause any modified files to carry prominent notices stating that You changed the files; and
40
+
41
+ You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
42
+
43
+ If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
package/README.md CHANGED
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.71 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.71.
50
+ You can read what changed in version 0.0.73 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.73.
package/index.d.ts CHANGED
@@ -118,15 +118,12 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
118
118
 
119
119
  interface AuthenticationExtensionsClientInputs {
120
120
  appid?: string;
121
- appidExclude?: string;
122
121
  credProps?: boolean;
123
- uvm?: boolean;
124
122
  }
125
123
 
126
124
  interface AuthenticationExtensionsClientOutputs {
127
125
  appid?: boolean;
128
126
  credProps?: CredentialPropertiesOutput;
129
- uvm?: UvmEntries;
130
127
  }
131
128
 
132
129
  interface AuthenticatorSelectionCriteria {
@@ -355,7 +352,7 @@ interface DeviceOrientationEventInit extends EventInit {
355
352
  gamma?: number | null;
356
353
  }
357
354
 
358
- interface DisplayMediaStreamConstraints {
355
+ interface DisplayMediaStreamOptions {
359
356
  audio?: boolean | MediaTrackConstraints;
360
357
  video?: boolean | MediaTrackConstraints;
361
358
  }
@@ -788,10 +785,6 @@ interface MediaQueryListEventInit extends EventInit {
788
785
  media?: string;
789
786
  }
790
787
 
791
- interface MediaRecorderErrorEventInit extends EventInit {
792
- error: DOMException;
793
- }
794
-
795
788
  interface MediaRecorderOptions {
796
789
  audioBitsPerSecond?: number;
797
790
  bitsPerSecond?: number;
@@ -801,9 +794,9 @@ interface MediaRecorderOptions {
801
794
 
802
795
  interface MediaSessionActionDetails {
803
796
  action: MediaSessionAction;
804
- fastSeek?: boolean | null;
805
- seekOffset?: number | null;
806
- seekTime?: number | null;
797
+ fastSeek?: boolean;
798
+ seekOffset?: number;
799
+ seekTime?: number;
807
800
  }
808
801
 
809
802
  interface MediaStreamAudioSourceOptions {
@@ -1300,6 +1293,8 @@ interface RTCIceCandidatePairStats extends RTCStats {
1300
1293
  bytesReceived?: number;
1301
1294
  bytesSent?: number;
1302
1295
  currentRoundTripTime?: number;
1296
+ lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
1297
+ lastPacketSentTimestamp?: DOMHighResTimeStamp;
1303
1298
  localCandidateId: string;
1304
1299
  nominated?: boolean;
1305
1300
  remoteCandidateId: string;
@@ -1314,18 +1309,45 @@ interface RTCIceCandidatePairStats extends RTCStats {
1314
1309
 
1315
1310
  interface RTCIceServer {
1316
1311
  credential?: string;
1317
- credentialType?: RTCIceCredentialType;
1318
1312
  urls: string | string[];
1319
1313
  username?: string;
1320
1314
  }
1321
1315
 
1322
1316
  interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
1317
+ audioLevel?: number;
1318
+ bytesReceived?: number;
1319
+ concealedSamples?: number;
1320
+ concealmentEvents?: number;
1321
+ decoderImplementation?: string;
1322
+ estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
1323
+ fecPacketsDiscarded?: number;
1324
+ fecPacketsReceived?: number;
1323
1325
  firCount?: number;
1326
+ frameHeight?: number;
1327
+ frameWidth?: number;
1324
1328
  framesDecoded?: number;
1329
+ framesPerSecond?: number;
1330
+ framesReceived?: number;
1331
+ headerBytesReceived?: number;
1332
+ insertedSamplesForDeceleration?: number;
1333
+ jitterBufferDelay?: number;
1334
+ jitterBufferEmittedCount?: number;
1335
+ keyFramesDecoded?: number;
1336
+ kind: string;
1337
+ lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
1325
1338
  nackCount?: number;
1339
+ packetsDiscarded?: number;
1326
1340
  pliCount?: number;
1327
1341
  qpSum?: number;
1328
1342
  remoteId?: string;
1343
+ removedSamplesForAcceleration?: number;
1344
+ silentConcealedSamples?: number;
1345
+ totalAudioEnergy?: number;
1346
+ totalDecodeTime?: number;
1347
+ totalInterFrameDelay?: number;
1348
+ totalSamplesDuration?: number;
1349
+ totalSamplesReceived?: number;
1350
+ totalSquaredInterFrameDelay?: number;
1329
1351
  }
1330
1352
 
1331
1353
  interface RTCLocalSessionDescriptionInit {
@@ -1344,11 +1366,27 @@ interface RTCOfferOptions extends RTCOfferAnswerOptions {
1344
1366
 
1345
1367
  interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
1346
1368
  firCount?: number;
1369
+ frameHeight?: number;
1370
+ frameWidth?: number;
1347
1371
  framesEncoded?: number;
1372
+ framesPerSecond?: number;
1373
+ framesSent?: number;
1374
+ headerBytesSent?: number;
1375
+ hugeFramesSent?: number;
1376
+ keyFramesEncoded?: number;
1377
+ mediaSourceId?: string;
1348
1378
  nackCount?: number;
1349
1379
  pliCount?: number;
1350
1380
  qpSum?: number;
1381
+ qualityLimitationResolutionChanges?: number;
1351
1382
  remoteId?: string;
1383
+ retransmittedBytesSent?: number;
1384
+ retransmittedPacketsSent?: number;
1385
+ rid?: string;
1386
+ targetBitrate?: number;
1387
+ totalEncodeTime?: number;
1388
+ totalEncodedBytesTarget?: number;
1389
+ totalPacketSendDelay?: number;
1352
1390
  }
1353
1391
 
1354
1392
  interface RTCPeerConnectionIceErrorEventInit extends EventInit {
@@ -1365,8 +1403,8 @@ interface RTCPeerConnectionIceEventInit extends EventInit {
1365
1403
  }
1366
1404
 
1367
1405
  interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
1406
+ framesDropped?: number;
1368
1407
  jitter?: number;
1369
- packetsDiscarded?: number;
1370
1408
  packetsLost?: number;
1371
1409
  packetsReceived?: number;
1372
1410
  }
@@ -1485,7 +1523,6 @@ interface RTCTransportStats extends RTCStats {
1485
1523
  dtlsState: RTCDtlsTransportState;
1486
1524
  localCertificateId?: string;
1487
1525
  remoteCertificateId?: string;
1488
- rtcpTransportStatsId?: string;
1489
1526
  selectedCandidatePairId?: string;
1490
1527
  srtpCipher?: string;
1491
1528
  tlsVersion?: string;
@@ -1942,12 +1979,14 @@ interface ARIAMixin {
1942
1979
  ariaChecked: string | null;
1943
1980
  ariaColCount: string | null;
1944
1981
  ariaColIndex: string | null;
1982
+ ariaColIndexText: string | null;
1945
1983
  ariaColSpan: string | null;
1946
1984
  ariaCurrent: string | null;
1947
1985
  ariaDisabled: string | null;
1948
1986
  ariaExpanded: string | null;
1949
1987
  ariaHasPopup: string | null;
1950
1988
  ariaHidden: string | null;
1989
+ ariaInvalid: string | null;
1951
1990
  ariaKeyShortcuts: string | null;
1952
1991
  ariaLabel: string | null;
1953
1992
  ariaLevel: string | null;
@@ -1964,6 +2003,7 @@ interface ARIAMixin {
1964
2003
  ariaRoleDescription: string | null;
1965
2004
  ariaRowCount: string | null;
1966
2005
  ariaRowIndex: string | null;
2006
+ ariaRowIndexText: string | null;
1967
2007
  ariaRowSpan: string | null;
1968
2008
  ariaSelected: string | null;
1969
2009
  ariaSetSize: string | null;
@@ -1972,6 +2012,7 @@ interface ARIAMixin {
1972
2012
  ariaValueMin: string | null;
1973
2013
  ariaValueNow: string | null;
1974
2014
  ariaValueText: string | null;
2015
+ role: string | null;
1975
2016
  }
1976
2017
 
1977
2018
  /** A controller object that allows you to abort one or more DOM requests as and when desired. */
@@ -2159,6 +2200,7 @@ interface Attr extends Node {
2159
2200
  readonly ownerDocument: Document;
2160
2201
  readonly ownerElement: Element | null;
2161
2202
  readonly prefix: string | null;
2203
+ /** @deprecated */
2162
2204
  readonly specified: boolean;
2163
2205
  value: string;
2164
2206
  }
@@ -2622,6 +2664,18 @@ declare var CSSFontFaceRule: {
2622
2664
  new(): CSSFontFaceRule;
2623
2665
  };
2624
2666
 
2667
+ interface CSSFontPaletteValuesRule extends CSSRule {
2668
+ readonly basePalette: string;
2669
+ readonly fontFamily: string;
2670
+ readonly name: string;
2671
+ readonly overrideColors: string;
2672
+ }
2673
+
2674
+ declare var CSSFontPaletteValuesRule: {
2675
+ prototype: CSSFontPaletteValuesRule;
2676
+ new(): CSSFontPaletteValuesRule;
2677
+ };
2678
+
2625
2679
  /** Any CSS at-rule that contains other rules nested within it. */
2626
2680
  interface CSSGroupingRule extends CSSRule {
2627
2681
  readonly cssRules: CSSRuleList;
@@ -2636,6 +2690,7 @@ declare var CSSGroupingRule: {
2636
2690
 
2637
2691
  interface CSSImportRule extends CSSRule {
2638
2692
  readonly href: string;
2693
+ readonly layerName: string | null;
2639
2694
  readonly media: MediaList;
2640
2695
  readonly styleSheet: CSSStyleSheet;
2641
2696
  }
@@ -2670,6 +2725,24 @@ declare var CSSKeyframesRule: {
2670
2725
  new(): CSSKeyframesRule;
2671
2726
  };
2672
2727
 
2728
+ interface CSSLayerBlockRule extends CSSGroupingRule {
2729
+ readonly name: string;
2730
+ }
2731
+
2732
+ declare var CSSLayerBlockRule: {
2733
+ prototype: CSSLayerBlockRule;
2734
+ new(): CSSLayerBlockRule;
2735
+ };
2736
+
2737
+ interface CSSLayerStatementRule extends CSSRule {
2738
+ readonly nameList: ReadonlyArray<string>;
2739
+ }
2740
+
2741
+ declare var CSSLayerStatementRule: {
2742
+ prototype: CSSLayerStatementRule;
2743
+ new(): CSSLayerStatementRule;
2744
+ };
2745
+
2673
2746
  /** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
2674
2747
  interface CSSMediaRule extends CSSConditionRule {
2675
2748
  readonly media: MediaList;
@@ -2767,6 +2840,7 @@ interface CSSStyleDeclaration {
2767
2840
  animationTimingFunction: string;
2768
2841
  appearance: string;
2769
2842
  aspectRatio: string;
2843
+ backdropFilter: string;
2770
2844
  backfaceVisibility: string;
2771
2845
  background: string;
2772
2846
  backgroundAttachment: string;
@@ -2901,6 +2975,7 @@ interface CSSStyleDeclaration {
2901
2975
  fontFeatureSettings: string;
2902
2976
  fontKerning: string;
2903
2977
  fontOpticalSizing: string;
2978
+ fontPalette: string;
2904
2979
  fontSize: string;
2905
2980
  fontSizeAdjust: string;
2906
2981
  fontStretch: string;
@@ -3532,6 +3607,7 @@ interface CanvasText {
3532
3607
  interface CanvasTextDrawingStyles {
3533
3608
  direction: CanvasDirection;
3534
3609
  font: string;
3610
+ fontKerning: CanvasFontKerning;
3535
3611
  textAlign: CanvasTextAlign;
3536
3612
  textBaseline: CanvasTextBaseline;
3537
3613
  }
@@ -4393,7 +4469,10 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4393
4469
  readonly documentElement: HTMLElement;
4394
4470
  /** Returns document's URL. */
4395
4471
  readonly documentURI: string;
4396
- /** Sets or gets the security domain of the document. */
4472
+ /**
4473
+ * Sets or gets the security domain of the document.
4474
+ * @deprecated
4475
+ */
4397
4476
  domain: string;
4398
4477
  /** Retrieves a collection of all embed objects in the document. */
4399
4478
  readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
@@ -4547,7 +4626,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4547
4626
  createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
4548
4627
  createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
4549
4628
  createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
4550
- createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
4551
4629
  createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
4552
4630
  createEvent(eventInterface: "MessageEvent"): MessageEvent;
4553
4631
  createEvent(eventInterface: "MouseEvent"): MouseEvent;
@@ -4677,6 +4755,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4677
4755
  /**
4678
4756
  * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
4679
4757
  * @param commandId String that specifies a command identifier.
4758
+ * @deprecated
4680
4759
  */
4681
4760
  queryCommandIndeterm(commandId: string): boolean;
4682
4761
  /**
@@ -4694,6 +4773,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
4694
4773
  /**
4695
4774
  * Returns the current value of the document, range, or current selection for the given command.
4696
4775
  * @param commandId String that specifies a command identifier.
4776
+ * @deprecated
4697
4777
  */
4698
4778
  queryCommandValue(commandId: string): string;
4699
4779
  /** @deprecated */
@@ -5054,6 +5134,7 @@ declare var ErrorEvent: {
5054
5134
  interface Event {
5055
5135
  /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
5056
5136
  readonly bubbles: boolean;
5137
+ /** @deprecated */
5057
5138
  cancelBubble: boolean;
5058
5139
  /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
5059
5140
  readonly cancelable: boolean;
@@ -5590,6 +5671,7 @@ interface GlobalEventHandlersEventMap {
5590
5671
  "auxclick": MouseEvent;
5591
5672
  "beforeinput": InputEvent;
5592
5673
  "blur": FocusEvent;
5674
+ "cancel": Event;
5593
5675
  "canplay": Event;
5594
5676
  "canplaythrough": Event;
5595
5677
  "change": Event;
@@ -5690,11 +5772,13 @@ interface GlobalEventHandlers {
5690
5772
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
5691
5773
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
5692
5774
  onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
5775
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
5693
5776
  /**
5694
5777
  * Fires when the object loses the input focus.
5695
5778
  * @param ev The focus event.
5696
5779
  */
5697
5780
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
5781
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5698
5782
  /**
5699
5783
  * Occurs when playback is possible, but would require further buffering.
5700
5784
  * @param ev The event.
@@ -9206,7 +9290,7 @@ interface MediaDevicesEventMap {
9206
9290
  interface MediaDevices extends EventTarget {
9207
9291
  ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
9208
9292
  enumerateDevices(): Promise<MediaDeviceInfo[]>;
9209
- getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;
9293
+ getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
9210
9294
  getSupportedConstraints(): MediaTrackSupportedConstraints;
9211
9295
  getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
9212
9296
  addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -9413,7 +9497,7 @@ declare var MediaQueryListEvent: {
9413
9497
 
9414
9498
  interface MediaRecorderEventMap {
9415
9499
  "dataavailable": BlobEvent;
9416
- "error": MediaRecorderErrorEvent;
9500
+ "error": Event;
9417
9501
  "pause": Event;
9418
9502
  "resume": Event;
9419
9503
  "start": Event;
@@ -9424,7 +9508,7 @@ interface MediaRecorder extends EventTarget {
9424
9508
  readonly audioBitsPerSecond: number;
9425
9509
  readonly mimeType: string;
9426
9510
  ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
9427
- onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null;
9511
+ onerror: ((this: MediaRecorder, ev: Event) => any) | null;
9428
9512
  onpause: ((this: MediaRecorder, ev: Event) => any) | null;
9429
9513
  onresume: ((this: MediaRecorder, ev: Event) => any) | null;
9430
9514
  onstart: ((this: MediaRecorder, ev: Event) => any) | null;
@@ -9449,15 +9533,6 @@ declare var MediaRecorder: {
9449
9533
  isTypeSupported(type: string): boolean;
9450
9534
  };
9451
9535
 
9452
- interface MediaRecorderErrorEvent extends Event {
9453
- readonly error: DOMException;
9454
- }
9455
-
9456
- declare var MediaRecorderErrorEvent: {
9457
- prototype: MediaRecorderErrorEvent;
9458
- new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
9459
- };
9460
-
9461
9536
  interface MediaSession {
9462
9537
  metadata: MediaMetadata | null;
9463
9538
  playbackState: MediaSessionPlaybackState;
@@ -9910,12 +9985,14 @@ interface NavigatorID {
9910
9985
  readonly appName: string;
9911
9986
  /** @deprecated */
9912
9987
  readonly appVersion: string;
9988
+ /** @deprecated */
9913
9989
  readonly platform: string;
9914
9990
  /** @deprecated */
9915
9991
  readonly product: string;
9916
9992
  /** @deprecated */
9917
9993
  readonly productSub: string;
9918
9994
  readonly userAgent: string;
9995
+ /** @deprecated */
9919
9996
  readonly vendor: string;
9920
9997
  /** @deprecated */
9921
9998
  readonly vendorSub: string;
@@ -10885,6 +10962,7 @@ declare var PromiseRejectionEvent: {
10885
10962
 
10886
10963
  /** Available only in secure contexts. */
10887
10964
  interface PublicKeyCredential extends Credential {
10965
+ readonly authenticatorAttachment: string | null;
10888
10966
  readonly rawId: ArrayBuffer;
10889
10967
  readonly response: AuthenticatorResponse;
10890
10968
  getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
@@ -13055,6 +13133,7 @@ interface SVGStyleElement extends SVGElement, LinkStyle {
13055
13133
  disabled: boolean;
13056
13134
  media: string;
13057
13135
  title: string;
13136
+ /** @deprecated */
13058
13137
  type: string;
13059
13138
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13060
13139
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -13417,6 +13496,7 @@ interface Selection {
13417
13496
  empty(): void;
13418
13497
  extend(node: Node, offset?: number): void;
13419
13498
  getRangeAt(index: number): Range;
13499
+ modify(alter?: string, direction?: string, granularity?: string): void;
13420
13500
  removeAllRanges(): void;
13421
13501
  removeRange(range: Range): void;
13422
13502
  selectAllChildren(node: Node): void;
@@ -13815,6 +13895,7 @@ interface StorageEvent extends Event {
13815
13895
  readonly storageArea: Storage | null;
13816
13896
  /** Returns the URL of the document whose storage item changed. */
13817
13897
  readonly url: string;
13898
+ /** @deprecated */
13818
13899
  initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
13819
13900
  }
13820
13901
 
@@ -14597,8 +14678,8 @@ interface WEBGL_lose_context {
14597
14678
  interface WEBGL_multi_draw {
14598
14679
  multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14599
14680
  multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
14600
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14601
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
14681
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
14682
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
14602
14683
  }
14603
14684
 
14604
14685
  /** A WaveShaperNode always has exactly one input and one output. */
@@ -17785,11 +17866,13 @@ declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
17785
17866
  declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
17786
17867
  declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
17787
17868
  declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
17869
+ declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
17788
17870
  /**
17789
17871
  * Fires when the object loses the input focus.
17790
17872
  * @param ev The focus event.
17791
17873
  */
17792
17874
  declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
17875
+ declare var oncancel: ((this: Window, ev: Event) => any) | null;
17793
17876
  /**
17794
17877
  * Occurs when playback is possible, but would require further buffering.
17795
17878
  * @param ev The event.
@@ -18148,10 +18231,8 @@ type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext |
18148
18231
  type RequestInfo = Request | string;
18149
18232
  type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
18150
18233
  type TimerHandler = string | Function;
18151
- type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
18234
+ type Transferable = ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18152
18235
  type Uint32List = Uint32Array | GLuint[];
18153
- type UvmEntries = UvmEntry[];
18154
- type UvmEntry = number[];
18155
18236
  type VibratePattern = number | number[];
18156
18237
  type WindowProxy = Window;
18157
18238
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
@@ -18163,7 +18244,7 @@ type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "n
18163
18244
  type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
18164
18245
  type AudioContextState = "closed" | "running" | "suspended";
18165
18246
  type AuthenticatorAttachment = "cross-platform" | "platform";
18166
- type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
18247
+ type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
18167
18248
  type AutoKeyword = "auto";
18168
18249
  type AutomationRate = "a-rate" | "k-rate";
18169
18250
  type BinaryType = "arraybuffer" | "blob";
@@ -18224,7 +18305,7 @@ type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-r
18224
18305
  type MediaKeySessionType = "persistent-license" | "temporary";
18225
18306
  type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
18226
18307
  type MediaKeysRequirement = "not-allowed" | "optional" | "required";
18227
- type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
18308
+ type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
18228
18309
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
18229
18310
  type MediaStreamTrackState = "ended" | "live";
18230
18311
  type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
@@ -18254,7 +18335,6 @@ type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint
18254
18335
  type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
18255
18336
  type RTCIceComponent = "rtcp" | "rtp";
18256
18337
  type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
18257
- type RTCIceCredentialType = "password";
18258
18338
  type RTCIceGathererState = "complete" | "gathering" | "new";
18259
18339
  type RTCIceGatheringState = "complete" | "gathering" | "new";
18260
18340
  type RTCIceProtocol = "tcp" | "udp";
@@ -18269,7 +18349,7 @@ type RTCSctpTransportState = "closed" | "connected" | "connecting";
18269
18349
  type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
18270
18350
  type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
18271
18351
  type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
18272
- type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
18352
+ type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
18273
18353
  type ReadableStreamReaderMode = "byob";
18274
18354
  type ReadableStreamType = "bytes";
18275
18355
  type ReadyState = "closed" | "ended" | "open";
package/iterable.d.ts CHANGED
@@ -253,8 +253,8 @@ interface WEBGL_draw_buffers {
253
253
  interface WEBGL_multi_draw {
254
254
  multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
255
255
  multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
256
- 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;
257
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
256
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
257
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
258
258
  }
259
259
 
260
260
  interface WebGL2RenderingContextBase {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
- "license": "MIT",
5
+ "license": "Apache-2.0",
6
6
  "contributors": [],
7
7
  "main": "",
8
8
  "types": "index.d.ts",
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE