@types/web 0.0.235 → 0.0.237

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/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.235 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.235.
50
+ You can read what changed in version 0.0.237 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.237.
package/index.d.ts CHANGED
@@ -914,6 +914,10 @@ interface KeyAlgorithm {
914
914
  name: string;
915
915
  }
916
916
 
917
+ interface KeySystemTrackConfiguration {
918
+ robustness?: string;
919
+ }
920
+
917
921
  interface KeyboardEventInit extends EventModifierInit {
918
922
  /** @deprecated */
919
923
  charCode?: number;
@@ -976,11 +980,10 @@ interface MIDIOptions {
976
980
  }
977
981
 
978
982
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
979
- configuration?: MediaDecodingConfiguration;
983
+ keySystemAccess: MediaKeySystemAccess | null;
980
984
  }
981
985
 
982
986
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
983
- configuration?: MediaEncodingConfiguration;
984
987
  }
985
988
 
986
989
  interface MediaCapabilitiesInfo {
@@ -989,12 +992,23 @@ interface MediaCapabilitiesInfo {
989
992
  supported: boolean;
990
993
  }
991
994
 
995
+ interface MediaCapabilitiesKeySystemConfiguration {
996
+ audio?: KeySystemTrackConfiguration;
997
+ distinctiveIdentifier?: MediaKeysRequirement;
998
+ initDataType?: string;
999
+ keySystem: string;
1000
+ persistentState?: MediaKeysRequirement;
1001
+ sessionTypes?: string[];
1002
+ video?: KeySystemTrackConfiguration;
1003
+ }
1004
+
992
1005
  interface MediaConfiguration {
993
1006
  audio?: AudioConfiguration;
994
1007
  video?: VideoConfiguration;
995
1008
  }
996
1009
 
997
1010
  interface MediaDecodingConfiguration extends MediaConfiguration {
1011
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
998
1012
  type: MediaDecodingType;
999
1013
  }
1000
1014
 
@@ -1635,21 +1649,23 @@ interface RTCDtlsFingerprint {
1635
1649
  value?: string;
1636
1650
  }
1637
1651
 
1638
- interface RTCEncodedAudioFrameMetadata {
1652
+ interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
1653
+ sequenceNumber?: number;
1654
+ }
1655
+
1656
+ interface RTCEncodedFrameMetadata {
1639
1657
  contributingSources?: number[];
1658
+ mimeType?: string;
1640
1659
  payloadType?: number;
1641
- sequenceNumber?: number;
1660
+ rtpTimestamp?: number;
1642
1661
  synchronizationSource?: number;
1643
1662
  }
1644
1663
 
1645
- interface RTCEncodedVideoFrameMetadata {
1646
- contributingSources?: number[];
1664
+ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
1647
1665
  dependencies?: number[];
1648
1666
  frameId?: number;
1649
1667
  height?: number;
1650
- payloadType?: number;
1651
1668
  spatialIndex?: number;
1652
- synchronizationSource?: number;
1653
1669
  temporalIndex?: number;
1654
1670
  timestamp?: number;
1655
1671
  width?: number;
@@ -6892,7 +6908,7 @@ interface Crypto {
6892
6908
  */
6893
6909
  readonly subtle: SubtleCrypto;
6894
6910
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
6895
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
6911
+ getRandomValues<T extends ArrayBufferView>(array: T): T;
6896
6912
  /**
6897
6913
  * Available only in secure contexts.
6898
6914
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.235",
3
+ "version": "0.0.237",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -914,6 +914,10 @@ interface KeyAlgorithm {
914
914
  name: string;
915
915
  }
916
916
 
917
+ interface KeySystemTrackConfiguration {
918
+ robustness?: string;
919
+ }
920
+
917
921
  interface KeyboardEventInit extends EventModifierInit {
918
922
  /** @deprecated */
919
923
  charCode?: number;
@@ -976,11 +980,10 @@ interface MIDIOptions {
976
980
  }
977
981
 
978
982
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
979
- configuration?: MediaDecodingConfiguration;
983
+ keySystemAccess: MediaKeySystemAccess | null;
980
984
  }
981
985
 
982
986
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
983
- configuration?: MediaEncodingConfiguration;
984
987
  }
985
988
 
986
989
  interface MediaCapabilitiesInfo {
@@ -989,12 +992,23 @@ interface MediaCapabilitiesInfo {
989
992
  supported: boolean;
990
993
  }
991
994
 
995
+ interface MediaCapabilitiesKeySystemConfiguration {
996
+ audio?: KeySystemTrackConfiguration;
997
+ distinctiveIdentifier?: MediaKeysRequirement;
998
+ initDataType?: string;
999
+ keySystem: string;
1000
+ persistentState?: MediaKeysRequirement;
1001
+ sessionTypes?: string[];
1002
+ video?: KeySystemTrackConfiguration;
1003
+ }
1004
+
992
1005
  interface MediaConfiguration {
993
1006
  audio?: AudioConfiguration;
994
1007
  video?: VideoConfiguration;
995
1008
  }
996
1009
 
997
1010
  interface MediaDecodingConfiguration extends MediaConfiguration {
1011
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
998
1012
  type: MediaDecodingType;
999
1013
  }
1000
1014
 
@@ -1635,21 +1649,23 @@ interface RTCDtlsFingerprint {
1635
1649
  value?: string;
1636
1650
  }
1637
1651
 
1638
- interface RTCEncodedAudioFrameMetadata {
1652
+ interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
1653
+ sequenceNumber?: number;
1654
+ }
1655
+
1656
+ interface RTCEncodedFrameMetadata {
1639
1657
  contributingSources?: number[];
1658
+ mimeType?: string;
1640
1659
  payloadType?: number;
1641
- sequenceNumber?: number;
1660
+ rtpTimestamp?: number;
1642
1661
  synchronizationSource?: number;
1643
1662
  }
1644
1663
 
1645
- interface RTCEncodedVideoFrameMetadata {
1646
- contributingSources?: number[];
1664
+ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
1647
1665
  dependencies?: number[];
1648
1666
  frameId?: number;
1649
1667
  height?: number;
1650
- payloadType?: number;
1651
1668
  spatialIndex?: number;
1652
- synchronizationSource?: number;
1653
1669
  temporalIndex?: number;
1654
1670
  timestamp?: number;
1655
1671
  width?: number;
@@ -6885,7 +6901,7 @@ interface Crypto {
6885
6901
  */
6886
6902
  readonly subtle: SubtleCrypto;
6887
6903
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
6888
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
6904
+ getRandomValues<T extends ArrayBufferView>(array: T): T;
6889
6905
  /**
6890
6906
  * Available only in secure contexts.
6891
6907
  *
package/ts5.6/index.d.ts CHANGED
@@ -914,6 +914,10 @@ interface KeyAlgorithm {
914
914
  name: string;
915
915
  }
916
916
 
917
+ interface KeySystemTrackConfiguration {
918
+ robustness?: string;
919
+ }
920
+
917
921
  interface KeyboardEventInit extends EventModifierInit {
918
922
  /** @deprecated */
919
923
  charCode?: number;
@@ -976,11 +980,10 @@ interface MIDIOptions {
976
980
  }
977
981
 
978
982
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
979
- configuration?: MediaDecodingConfiguration;
983
+ keySystemAccess: MediaKeySystemAccess | null;
980
984
  }
981
985
 
982
986
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
983
- configuration?: MediaEncodingConfiguration;
984
987
  }
985
988
 
986
989
  interface MediaCapabilitiesInfo {
@@ -989,12 +992,23 @@ interface MediaCapabilitiesInfo {
989
992
  supported: boolean;
990
993
  }
991
994
 
995
+ interface MediaCapabilitiesKeySystemConfiguration {
996
+ audio?: KeySystemTrackConfiguration;
997
+ distinctiveIdentifier?: MediaKeysRequirement;
998
+ initDataType?: string;
999
+ keySystem: string;
1000
+ persistentState?: MediaKeysRequirement;
1001
+ sessionTypes?: string[];
1002
+ video?: KeySystemTrackConfiguration;
1003
+ }
1004
+
992
1005
  interface MediaConfiguration {
993
1006
  audio?: AudioConfiguration;
994
1007
  video?: VideoConfiguration;
995
1008
  }
996
1009
 
997
1010
  interface MediaDecodingConfiguration extends MediaConfiguration {
1011
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
998
1012
  type: MediaDecodingType;
999
1013
  }
1000
1014
 
@@ -1635,21 +1649,23 @@ interface RTCDtlsFingerprint {
1635
1649
  value?: string;
1636
1650
  }
1637
1651
 
1638
- interface RTCEncodedAudioFrameMetadata {
1652
+ interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
1653
+ sequenceNumber?: number;
1654
+ }
1655
+
1656
+ interface RTCEncodedFrameMetadata {
1639
1657
  contributingSources?: number[];
1658
+ mimeType?: string;
1640
1659
  payloadType?: number;
1641
- sequenceNumber?: number;
1660
+ rtpTimestamp?: number;
1642
1661
  synchronizationSource?: number;
1643
1662
  }
1644
1663
 
1645
- interface RTCEncodedVideoFrameMetadata {
1646
- contributingSources?: number[];
1664
+ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
1647
1665
  dependencies?: number[];
1648
1666
  frameId?: number;
1649
1667
  height?: number;
1650
- payloadType?: number;
1651
1668
  spatialIndex?: number;
1652
- synchronizationSource?: number;
1653
1669
  temporalIndex?: number;
1654
1670
  timestamp?: number;
1655
1671
  width?: number;
@@ -6892,7 +6908,7 @@ interface Crypto {
6892
6908
  */
6893
6909
  readonly subtle: SubtleCrypto;
6894
6910
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
6895
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
6911
+ getRandomValues<T extends ArrayBufferView>(array: T): T;
6896
6912
  /**
6897
6913
  * Available only in secure contexts.
6898
6914
  *