@types/web 0.0.94 → 0.0.95

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.94 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.94.
50
+ You can read what changed in version 0.0.95 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.95.
package/index.d.ts CHANGED
@@ -135,6 +135,10 @@ interface AuthenticatorSelectionCriteria {
135
135
  userVerification?: UserVerificationRequirement;
136
136
  }
137
137
 
138
+ interface AvcEncoderConfig {
139
+ format?: AvcBitstreamFormat;
140
+ }
141
+
138
142
  interface BiquadFilterOptions extends AudioNodeOptions {
139
143
  Q?: number;
140
144
  detune?: number;
@@ -153,6 +157,21 @@ interface BlobPropertyBag {
153
157
  type?: string;
154
158
  }
155
159
 
160
+ interface CSSMatrixComponentOptions {
161
+ is2D?: boolean;
162
+ }
163
+
164
+ interface CSSNumericType {
165
+ angle?: number;
166
+ flex?: number;
167
+ frequency?: number;
168
+ length?: number;
169
+ percent?: number;
170
+ percentHint?: CSSNumericBaseType;
171
+ resolution?: number;
172
+ time?: number;
173
+ }
174
+
156
175
  interface CSSStyleSheetInit {
157
176
  baseURL?: string;
158
177
  disabled?: boolean;
@@ -408,7 +427,7 @@ interface EcdsaParams extends Algorithm {
408
427
  interface EffectTiming {
409
428
  delay?: number;
410
429
  direction?: PlaybackDirection;
411
- duration?: number | string;
430
+ duration?: number | CSSNumericValue | string;
412
431
  easing?: string;
413
432
  endDelay?: number;
414
433
  fill?: FillMode;
@@ -425,6 +444,17 @@ interface ElementDefinitionOptions {
425
444
  extends?: string;
426
445
  }
427
446
 
447
+ interface EncodedVideoChunkInit {
448
+ data: BufferSource;
449
+ duration?: number;
450
+ timestamp: number;
451
+ type: EncodedVideoChunkType;
452
+ }
453
+
454
+ interface EncodedVideoChunkMetadata {
455
+ decoderConfig?: VideoDecoderConfig;
456
+ }
457
+
428
458
  interface ErrorEventInit extends EventInit {
429
459
  colno?: number;
430
460
  error?: any;
@@ -522,6 +552,13 @@ interface GainOptions extends AudioNodeOptions {
522
552
  gain?: number;
523
553
  }
524
554
 
555
+ interface GamepadEffectParameters {
556
+ duration?: number;
557
+ startDelay?: number;
558
+ strongMagnitude?: number;
559
+ weakMagnitude?: number;
560
+ }
561
+
525
562
  interface GamepadEventInit extends EventInit {
526
563
  gamepad: Gamepad;
527
564
  }
@@ -1125,6 +1162,11 @@ interface PictureInPictureEventInit extends EventInit {
1125
1162
  pictureInPictureWindow: PictureInPictureWindow;
1126
1163
  }
1127
1164
 
1165
+ interface PlaneLayout {
1166
+ offset: number;
1167
+ stride: number;
1168
+ }
1169
+
1128
1170
  interface PointerEventInit extends MouseEventInit {
1129
1171
  coalescedEvents?: PointerEvent[];
1130
1172
  height?: number;
@@ -1161,6 +1203,13 @@ interface PromiseRejectionEventInit extends EventInit {
1161
1203
  reason?: any;
1162
1204
  }
1163
1205
 
1206
+ interface PropertyDefinition {
1207
+ inherits: boolean;
1208
+ initialValue?: string;
1209
+ name: string;
1210
+ syntax?: string;
1211
+ }
1212
+
1164
1213
  interface PropertyIndexedKeyframes {
1165
1214
  composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
1166
1215
  easing?: string | string[];
@@ -1312,6 +1361,11 @@ interface RTCIceCandidateInit {
1312
1361
  usernameFragment?: string | null;
1313
1362
  }
1314
1363
 
1364
+ interface RTCIceCandidatePair {
1365
+ local?: RTCIceCandidate;
1366
+ remote?: RTCIceCandidate;
1367
+ }
1368
+
1315
1369
  interface RTCIceCandidatePairStats extends RTCStats {
1316
1370
  availableIncomingBitrate?: number;
1317
1371
  availableOutgoingBitrate?: number;
@@ -1591,6 +1645,11 @@ interface RegistrationOptions {
1591
1645
  updateViaCache?: ServiceWorkerUpdateViaCache;
1592
1646
  }
1593
1647
 
1648
+ interface ReportingObserverOptions {
1649
+ buffered?: boolean;
1650
+ types?: string[];
1651
+ }
1652
+
1594
1653
  interface RequestInit {
1595
1654
  /** A BodyInit object or null to set request's body. */
1596
1655
  body?: BodyInit | null;
@@ -1914,6 +1973,71 @@ interface VideoConfiguration {
1914
1973
  width: number;
1915
1974
  }
1916
1975
 
1976
+ interface VideoDecoderConfig {
1977
+ codec: string;
1978
+ codedHeight?: number;
1979
+ codedWidth?: number;
1980
+ colorSpace?: VideoColorSpaceInit;
1981
+ description?: BufferSource;
1982
+ displayAspectHeight?: number;
1983
+ displayAspectWidth?: number;
1984
+ hardwareAcceleration?: HardwareAcceleration;
1985
+ optimizeForLatency?: boolean;
1986
+ }
1987
+
1988
+ interface VideoDecoderInit {
1989
+ error: WebCodecsErrorCallback;
1990
+ output: VideoFrameOutputCallback;
1991
+ }
1992
+
1993
+ interface VideoDecoderSupport {
1994
+ config?: VideoDecoderConfig;
1995
+ supported?: boolean;
1996
+ }
1997
+
1998
+ interface VideoEncoderConfig {
1999
+ alpha?: AlphaOption;
2000
+ avc?: AvcEncoderConfig;
2001
+ bitrate?: number;
2002
+ bitrateMode?: BitrateMode;
2003
+ codec: string;
2004
+ displayHeight?: number;
2005
+ displayWidth?: number;
2006
+ framerate?: number;
2007
+ hardwareAcceleration?: HardwareAcceleration;
2008
+ height: number;
2009
+ latencyMode?: LatencyMode;
2010
+ scalabilityMode?: string;
2011
+ width: number;
2012
+ }
2013
+
2014
+ interface VideoEncoderEncodeOptions {
2015
+ keyFrame?: boolean;
2016
+ }
2017
+
2018
+ interface VideoEncoderInit {
2019
+ error: WebCodecsErrorCallback;
2020
+ output: EncodedVideoChunkOutputCallback;
2021
+ }
2022
+
2023
+ interface VideoEncoderSupport {
2024
+ config?: VideoEncoderConfig;
2025
+ supported?: boolean;
2026
+ }
2027
+
2028
+ interface VideoFrameBufferInit {
2029
+ codedHeight: number;
2030
+ codedWidth: number;
2031
+ colorSpace?: VideoColorSpaceInit;
2032
+ displayHeight?: number;
2033
+ displayWidth?: number;
2034
+ duration?: number;
2035
+ format: VideoPixelFormat;
2036
+ layout?: PlaneLayout[];
2037
+ timestamp: number;
2038
+ visibleRect?: DOMRectInit;
2039
+ }
2040
+
1917
2041
  interface VideoFrameCallbackMetadata {
1918
2042
  captureTime?: DOMHighResTimeStamp;
1919
2043
  expectedDisplayTime: DOMHighResTimeStamp;
@@ -1927,6 +2051,20 @@ interface VideoFrameCallbackMetadata {
1927
2051
  width: number;
1928
2052
  }
1929
2053
 
2054
+ interface VideoFrameCopyToOptions {
2055
+ layout?: PlaneLayout[];
2056
+ rect?: DOMRectInit;
2057
+ }
2058
+
2059
+ interface VideoFrameInit {
2060
+ alpha?: AlphaOption;
2061
+ displayHeight?: number;
2062
+ displayWidth?: number;
2063
+ duration?: number;
2064
+ timestamp?: number;
2065
+ visibleRect?: DOMRectInit;
2066
+ }
2067
+
1930
2068
  interface WaveShaperOptions extends AudioNodeOptions {
1931
2069
  curve?: number[] | Float32Array;
1932
2070
  oversample?: OverSampleType;
@@ -2733,6 +2871,14 @@ declare var CSSGroupingRule: {
2733
2871
  new(): CSSGroupingRule;
2734
2872
  };
2735
2873
 
2874
+ interface CSSImageValue extends CSSStyleValue {
2875
+ }
2876
+
2877
+ declare var CSSImageValue: {
2878
+ prototype: CSSImageValue;
2879
+ new(): CSSImageValue;
2880
+ };
2881
+
2736
2882
  interface CSSImportRule extends CSSRule {
2737
2883
  readonly href: string;
2738
2884
  readonly layerName: string | null;
@@ -2771,6 +2917,15 @@ declare var CSSKeyframesRule: {
2771
2917
  new(): CSSKeyframesRule;
2772
2918
  };
2773
2919
 
2920
+ interface CSSKeywordValue extends CSSStyleValue {
2921
+ value: string;
2922
+ }
2923
+
2924
+ declare var CSSKeywordValue: {
2925
+ prototype: CSSKeywordValue;
2926
+ new(value: string): CSSKeywordValue;
2927
+ };
2928
+
2774
2929
  interface CSSLayerBlockRule extends CSSGroupingRule {
2775
2930
  readonly name: string;
2776
2931
  }
@@ -2789,6 +2944,89 @@ declare var CSSLayerStatementRule: {
2789
2944
  new(): CSSLayerStatementRule;
2790
2945
  };
2791
2946
 
2947
+ interface CSSMathClamp extends CSSMathValue {
2948
+ readonly lower: CSSNumericValue;
2949
+ readonly upper: CSSNumericValue;
2950
+ readonly value: CSSNumericValue;
2951
+ }
2952
+
2953
+ declare var CSSMathClamp: {
2954
+ prototype: CSSMathClamp;
2955
+ new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
2956
+ };
2957
+
2958
+ interface CSSMathInvert extends CSSMathValue {
2959
+ readonly value: CSSNumericValue;
2960
+ }
2961
+
2962
+ declare var CSSMathInvert: {
2963
+ prototype: CSSMathInvert;
2964
+ new(arg: CSSNumberish): CSSMathInvert;
2965
+ };
2966
+
2967
+ interface CSSMathMax extends CSSMathValue {
2968
+ readonly values: CSSNumericArray;
2969
+ }
2970
+
2971
+ declare var CSSMathMax: {
2972
+ prototype: CSSMathMax;
2973
+ new(...args: CSSNumberish[]): CSSMathMax;
2974
+ };
2975
+
2976
+ interface CSSMathMin extends CSSMathValue {
2977
+ readonly values: CSSNumericArray;
2978
+ }
2979
+
2980
+ declare var CSSMathMin: {
2981
+ prototype: CSSMathMin;
2982
+ new(...args: CSSNumberish[]): CSSMathMin;
2983
+ };
2984
+
2985
+ interface CSSMathNegate extends CSSMathValue {
2986
+ readonly value: CSSNumericValue;
2987
+ }
2988
+
2989
+ declare var CSSMathNegate: {
2990
+ prototype: CSSMathNegate;
2991
+ new(arg: CSSNumberish): CSSMathNegate;
2992
+ };
2993
+
2994
+ interface CSSMathProduct extends CSSMathValue {
2995
+ readonly values: CSSNumericArray;
2996
+ }
2997
+
2998
+ declare var CSSMathProduct: {
2999
+ prototype: CSSMathProduct;
3000
+ new(...args: CSSNumberish[]): CSSMathProduct;
3001
+ };
3002
+
3003
+ interface CSSMathSum extends CSSMathValue {
3004
+ readonly values: CSSNumericArray;
3005
+ }
3006
+
3007
+ declare var CSSMathSum: {
3008
+ prototype: CSSMathSum;
3009
+ new(...args: CSSNumberish[]): CSSMathSum;
3010
+ };
3011
+
3012
+ interface CSSMathValue extends CSSNumericValue {
3013
+ readonly operator: CSSMathOperator;
3014
+ }
3015
+
3016
+ declare var CSSMathValue: {
3017
+ prototype: CSSMathValue;
3018
+ new(): CSSMathValue;
3019
+ };
3020
+
3021
+ interface CSSMatrixComponent extends CSSTransformComponent {
3022
+ matrix: DOMMatrix;
3023
+ }
3024
+
3025
+ declare var CSSMatrixComponent: {
3026
+ prototype: CSSMatrixComponent;
3027
+ new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
3028
+ };
3029
+
2792
3030
  /** 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). */
2793
3031
  interface CSSMediaRule extends CSSConditionRule {
2794
3032
  readonly media: MediaList;
@@ -2810,6 +3048,36 @@ declare var CSSNamespaceRule: {
2810
3048
  new(): CSSNamespaceRule;
2811
3049
  };
2812
3050
 
3051
+ interface CSSNumericArray {
3052
+ readonly length: number;
3053
+ forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
3054
+ [index: number]: CSSNumericValue;
3055
+ }
3056
+
3057
+ declare var CSSNumericArray: {
3058
+ prototype: CSSNumericArray;
3059
+ new(): CSSNumericArray;
3060
+ };
3061
+
3062
+ interface CSSNumericValue extends CSSStyleValue {
3063
+ add(...values: CSSNumberish[]): CSSNumericValue;
3064
+ div(...values: CSSNumberish[]): CSSNumericValue;
3065
+ equals(...value: CSSNumberish[]): boolean;
3066
+ max(...values: CSSNumberish[]): CSSNumericValue;
3067
+ min(...values: CSSNumberish[]): CSSNumericValue;
3068
+ mul(...values: CSSNumberish[]): CSSNumericValue;
3069
+ sub(...values: CSSNumberish[]): CSSNumericValue;
3070
+ to(unit: string): CSSUnitValue;
3071
+ toSum(...units: string[]): CSSMathSum;
3072
+ type(): CSSNumericType;
3073
+ }
3074
+
3075
+ declare var CSSNumericValue: {
3076
+ prototype: CSSNumericValue;
3077
+ new(): CSSNumericValue;
3078
+ parse(cssText: string): CSSNumericValue;
3079
+ };
3080
+
2813
3081
  /** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
2814
3082
  interface CSSPageRule extends CSSGroupingRule {
2815
3083
  selectorText: string;
@@ -2821,6 +3089,40 @@ declare var CSSPageRule: {
2821
3089
  new(): CSSPageRule;
2822
3090
  };
2823
3091
 
3092
+ interface CSSPerspective extends CSSTransformComponent {
3093
+ length: CSSPerspectiveValue;
3094
+ }
3095
+
3096
+ declare var CSSPerspective: {
3097
+ prototype: CSSPerspective;
3098
+ new(length: CSSPerspectiveValue): CSSPerspective;
3099
+ };
3100
+
3101
+ interface CSSPropertyRule extends CSSRule {
3102
+ readonly inherits: boolean;
3103
+ readonly initialValue: string | null;
3104
+ readonly name: string;
3105
+ readonly syntax: string;
3106
+ }
3107
+
3108
+ declare var CSSPropertyRule: {
3109
+ prototype: CSSPropertyRule;
3110
+ new(): CSSPropertyRule;
3111
+ };
3112
+
3113
+ interface CSSRotate extends CSSTransformComponent {
3114
+ angle: CSSNumericValue;
3115
+ x: CSSNumberish;
3116
+ y: CSSNumberish;
3117
+ z: CSSNumberish;
3118
+ }
3119
+
3120
+ declare var CSSRotate: {
3121
+ prototype: CSSRotate;
3122
+ new(angle: CSSNumericValue): CSSRotate;
3123
+ new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
3124
+ };
3125
+
2824
3126
  /** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
2825
3127
  interface CSSRule {
2826
3128
  cssText: string;
@@ -2867,6 +3169,45 @@ declare var CSSRuleList: {
2867
3169
  new(): CSSRuleList;
2868
3170
  };
2869
3171
 
3172
+ interface CSSScale extends CSSTransformComponent {
3173
+ x: CSSNumberish;
3174
+ y: CSSNumberish;
3175
+ z: CSSNumberish;
3176
+ }
3177
+
3178
+ declare var CSSScale: {
3179
+ prototype: CSSScale;
3180
+ new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
3181
+ };
3182
+
3183
+ interface CSSSkew extends CSSTransformComponent {
3184
+ ax: CSSNumericValue;
3185
+ ay: CSSNumericValue;
3186
+ }
3187
+
3188
+ declare var CSSSkew: {
3189
+ prototype: CSSSkew;
3190
+ new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
3191
+ };
3192
+
3193
+ interface CSSSkewX extends CSSTransformComponent {
3194
+ ax: CSSNumericValue;
3195
+ }
3196
+
3197
+ declare var CSSSkewX: {
3198
+ prototype: CSSSkewX;
3199
+ new(ax: CSSNumericValue): CSSSkewX;
3200
+ };
3201
+
3202
+ interface CSSSkewY extends CSSTransformComponent {
3203
+ ay: CSSNumericValue;
3204
+ }
3205
+
3206
+ declare var CSSSkewY: {
3207
+ prototype: CSSSkewY;
3208
+ new(ay: CSSNumericValue): CSSSkewY;
3209
+ };
3210
+
2870
3211
  /** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
2871
3212
  interface CSSStyleDeclaration {
2872
3213
  accentColor: string;
@@ -3035,6 +3376,9 @@ interface CSSStyleDeclaration {
3035
3376
  fontStretch: string;
3036
3377
  fontStyle: string;
3037
3378
  fontSynthesis: string;
3379
+ fontSynthesisSmallCaps: string;
3380
+ fontSynthesisStyle: string;
3381
+ fontSynthesisWeight: string;
3038
3382
  fontVariant: string;
3039
3383
  fontVariantAlternates: string;
3040
3384
  fontVariantCaps: string;
@@ -3427,6 +3771,7 @@ declare var CSSStyleDeclaration: {
3427
3771
  interface CSSStyleRule extends CSSRule {
3428
3772
  selectorText: string;
3429
3773
  readonly style: CSSStyleDeclaration;
3774
+ readonly styleMap: StylePropertyMap;
3430
3775
  }
3431
3776
 
3432
3777
  declare var CSSStyleRule: {
@@ -3455,6 +3800,17 @@ declare var CSSStyleSheet: {
3455
3800
  new(options?: CSSStyleSheetInit): CSSStyleSheet;
3456
3801
  };
3457
3802
 
3803
+ interface CSSStyleValue {
3804
+ toString(): string;
3805
+ }
3806
+
3807
+ declare var CSSStyleValue: {
3808
+ prototype: CSSStyleValue;
3809
+ new(): CSSStyleValue;
3810
+ parse(property: string, cssText: string): CSSStyleValue;
3811
+ parseAll(property: string, cssText: string): CSSStyleValue[];
3812
+ };
3813
+
3458
3814
  /** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
3459
3815
  interface CSSSupportsRule extends CSSConditionRule {
3460
3816
  }
@@ -3464,6 +3820,30 @@ declare var CSSSupportsRule: {
3464
3820
  new(): CSSSupportsRule;
3465
3821
  };
3466
3822
 
3823
+ interface CSSTransformComponent {
3824
+ is2D: boolean;
3825
+ toMatrix(): DOMMatrix;
3826
+ toString(): string;
3827
+ }
3828
+
3829
+ declare var CSSTransformComponent: {
3830
+ prototype: CSSTransformComponent;
3831
+ new(): CSSTransformComponent;
3832
+ };
3833
+
3834
+ interface CSSTransformValue extends CSSStyleValue {
3835
+ readonly is2D: boolean;
3836
+ readonly length: number;
3837
+ toMatrix(): DOMMatrix;
3838
+ forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
3839
+ [index: number]: CSSTransformComponent;
3840
+ }
3841
+
3842
+ declare var CSSTransformValue: {
3843
+ prototype: CSSTransformValue;
3844
+ new(transforms: CSSTransformComponent[]): CSSTransformValue;
3845
+ };
3846
+
3467
3847
  interface CSSTransition extends Animation {
3468
3848
  readonly transitionProperty: string;
3469
3849
  addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -3477,6 +3857,48 @@ declare var CSSTransition: {
3477
3857
  new(): CSSTransition;
3478
3858
  };
3479
3859
 
3860
+ interface CSSTranslate extends CSSTransformComponent {
3861
+ x: CSSNumericValue;
3862
+ y: CSSNumericValue;
3863
+ z: CSSNumericValue;
3864
+ }
3865
+
3866
+ declare var CSSTranslate: {
3867
+ prototype: CSSTranslate;
3868
+ new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
3869
+ };
3870
+
3871
+ interface CSSUnitValue extends CSSNumericValue {
3872
+ readonly unit: string;
3873
+ value: number;
3874
+ }
3875
+
3876
+ declare var CSSUnitValue: {
3877
+ prototype: CSSUnitValue;
3878
+ new(value: number, unit: string): CSSUnitValue;
3879
+ };
3880
+
3881
+ interface CSSUnparsedValue extends CSSStyleValue {
3882
+ readonly length: number;
3883
+ forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
3884
+ [index: number]: CSSUnparsedSegment;
3885
+ }
3886
+
3887
+ declare var CSSUnparsedValue: {
3888
+ prototype: CSSUnparsedValue;
3889
+ new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
3890
+ };
3891
+
3892
+ interface CSSVariableReferenceValue {
3893
+ readonly fallback: CSSUnparsedValue | null;
3894
+ variable: string;
3895
+ }
3896
+
3897
+ declare var CSSVariableReferenceValue: {
3898
+ prototype: CSSVariableReferenceValue;
3899
+ new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
3900
+ };
3901
+
3480
3902
  /**
3481
3903
  * Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
3482
3904
  * Available only in secure contexts.
@@ -3819,6 +4241,14 @@ declare var CompositionEvent: {
3819
4241
  new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
3820
4242
  };
3821
4243
 
4244
+ interface CompressionStream extends GenericTransformStream {
4245
+ }
4246
+
4247
+ declare var CompressionStream: {
4248
+ prototype: CompressionStream;
4249
+ new(format: string): CompressionStream;
4250
+ };
4251
+
3822
4252
  interface ConstantSourceNode extends AudioScheduledSourceNode {
3823
4253
  readonly offset: AudioParam;
3824
4254
  addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -4393,6 +4823,14 @@ declare var DataTransferItemList: {
4393
4823
  new(): DataTransferItemList;
4394
4824
  };
4395
4825
 
4826
+ interface DecompressionStream extends GenericTransformStream {
4827
+ }
4828
+
4829
+ declare var DecompressionStream: {
4830
+ prototype: DecompressionStream;
4831
+ new(format: string): DecompressionStream;
4832
+ };
4833
+
4396
4834
  /** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */
4397
4835
  interface DelayNode extends AudioNode {
4398
4836
  readonly delayTime: AudioParam;
@@ -5060,6 +5498,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
5060
5498
  closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
5061
5499
  closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
5062
5500
  closest<E extends Element = Element>(selectors: string): E | null;
5501
+ computedStyleMap(): StylePropertyMapReadOnly;
5063
5502
  /** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
5064
5503
  getAttribute(qualifiedName: string): string | null;
5065
5504
  /** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */
@@ -5141,6 +5580,7 @@ declare var Element: {
5141
5580
  };
5142
5581
 
5143
5582
  interface ElementCSSInlineStyle {
5583
+ readonly attributeStyleMap: StylePropertyMap;
5144
5584
  readonly style: CSSStyleDeclaration;
5145
5585
  }
5146
5586
 
@@ -5183,6 +5623,19 @@ declare var ElementInternals: {
5183
5623
  new(): ElementInternals;
5184
5624
  };
5185
5625
 
5626
+ interface EncodedVideoChunk {
5627
+ readonly byteLength: number;
5628
+ readonly duration: number | null;
5629
+ readonly timestamp: number;
5630
+ readonly type: EncodedVideoChunkType;
5631
+ copyTo(destination: BufferSource): void;
5632
+ }
5633
+
5634
+ declare var EncodedVideoChunk: {
5635
+ prototype: EncodedVideoChunk;
5636
+ new(init: EncodedVideoChunkInit): EncodedVideoChunk;
5637
+ };
5638
+
5186
5639
  /** Events providing information related to errors in scripts or in files. */
5187
5640
  interface ErrorEvent extends Event {
5188
5641
  readonly colno: number;
@@ -5623,6 +6076,7 @@ interface Gamepad {
5623
6076
  readonly index: number;
5624
6077
  readonly mapping: GamepadMappingType;
5625
6078
  readonly timestamp: DOMHighResTimeStamp;
6079
+ readonly vibrationActuator: GamepadHapticActuator | null;
5626
6080
  }
5627
6081
 
5628
6082
  declare var Gamepad: {
@@ -5661,6 +6115,8 @@ declare var GamepadEvent: {
5661
6115
  /** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
5662
6116
  interface GamepadHapticActuator {
5663
6117
  readonly type: GamepadHapticActuatorType;
6118
+ playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
6119
+ reset(): Promise<GamepadHapticsResult>;
5664
6120
  }
5665
6121
 
5666
6122
  declare var GamepadHapticActuator: {
@@ -6977,6 +7433,7 @@ interface HTMLIFrameElement extends HTMLElement {
6977
7433
  frameBorder: string;
6978
7434
  /** Sets or retrieves the height of the object. */
6979
7435
  height: string;
7436
+ loading: string;
6980
7437
  /**
6981
7438
  * Sets or retrieves a URI to a long description of the object.
6982
7439
  * @deprecated
@@ -10141,6 +10598,8 @@ interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentH
10141
10598
  readonly permissions: Permissions;
10142
10599
  /** Available only in secure contexts. */
10143
10600
  readonly serviceWorker: ServiceWorkerContainer;
10601
+ readonly userActivation: UserActivation;
10602
+ readonly wakeLock: WakeLock;
10144
10603
  /** Available only in secure contexts. */
10145
10604
  canShare(data?: ShareData): boolean;
10146
10605
  getGamepads(): (Gamepad | null)[];
@@ -11480,6 +11939,7 @@ declare var RTCIceCandidate: {
11480
11939
 
11481
11940
  interface RTCIceTransportEventMap {
11482
11941
  "gatheringstatechange": Event;
11942
+ "selectedcandidatepairchange": Event;
11483
11943
  "statechange": Event;
11484
11944
  }
11485
11945
 
@@ -11487,8 +11947,10 @@ interface RTCIceTransportEventMap {
11487
11947
  interface RTCIceTransport extends EventTarget {
11488
11948
  readonly gatheringState: RTCIceGathererState;
11489
11949
  ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
11950
+ onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
11490
11951
  onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
11491
11952
  readonly state: RTCIceTransportState;
11953
+ getSelectedCandidatePair(): RTCIceCandidatePair | null;
11492
11954
  addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
11493
11955
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
11494
11956
  removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -11859,6 +12321,38 @@ declare var RemotePlayback: {
11859
12321
  new(): RemotePlayback;
11860
12322
  };
11861
12323
 
12324
+ interface Report {
12325
+ readonly body: ReportBody | null;
12326
+ readonly type: string;
12327
+ readonly url: string;
12328
+ toJSON(): any;
12329
+ }
12330
+
12331
+ declare var Report: {
12332
+ prototype: Report;
12333
+ new(): Report;
12334
+ };
12335
+
12336
+ interface ReportBody {
12337
+ toJSON(): any;
12338
+ }
12339
+
12340
+ declare var ReportBody: {
12341
+ prototype: ReportBody;
12342
+ new(): ReportBody;
12343
+ };
12344
+
12345
+ interface ReportingObserver {
12346
+ disconnect(): void;
12347
+ observe(): void;
12348
+ takeRecords(): ReportList;
12349
+ }
12350
+
12351
+ declare var ReportingObserver: {
12352
+ prototype: ReportingObserver;
12353
+ new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
12354
+ };
12355
+
11862
12356
  /** This Fetch API interface represents a resource request. */
11863
12357
  interface Request extends Body {
11864
12358
  /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
@@ -14197,6 +14691,31 @@ interface StyleMedia {
14197
14691
  matchMedium(mediaquery: string): boolean;
14198
14692
  }
14199
14693
 
14694
+ interface StylePropertyMap extends StylePropertyMapReadOnly {
14695
+ append(property: string, ...values: (CSSStyleValue | string)[]): void;
14696
+ clear(): void;
14697
+ delete(property: string): void;
14698
+ set(property: string, ...values: (CSSStyleValue | string)[]): void;
14699
+ }
14700
+
14701
+ declare var StylePropertyMap: {
14702
+ prototype: StylePropertyMap;
14703
+ new(): StylePropertyMap;
14704
+ };
14705
+
14706
+ interface StylePropertyMapReadOnly {
14707
+ readonly size: number;
14708
+ get(property: string): undefined | CSSStyleValue;
14709
+ getAll(property: string): CSSStyleValue[];
14710
+ has(property: string): boolean;
14711
+ forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
14712
+ }
14713
+
14714
+ declare var StylePropertyMapReadOnly: {
14715
+ prototype: StylePropertyMapReadOnly;
14716
+ new(): StylePropertyMapReadOnly;
14717
+ };
14718
+
14200
14719
  /** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
14201
14720
  interface StyleSheet {
14202
14721
  disabled: boolean;
@@ -14708,6 +15227,16 @@ declare var URLSearchParams: {
14708
15227
  new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
14709
15228
  };
14710
15229
 
15230
+ interface UserActivation {
15231
+ readonly hasBeenActive: boolean;
15232
+ readonly isActive: boolean;
15233
+ }
15234
+
15235
+ declare var UserActivation: {
15236
+ prototype: UserActivation;
15237
+ new(): UserActivation;
15238
+ };
15239
+
14711
15240
  interface VTTCue extends TextTrackCue {
14712
15241
  align: AlignSetting;
14713
15242
  line: LineAndPositionSetting;
@@ -14780,6 +15309,81 @@ declare var VideoColorSpace: {
14780
15309
  new(init?: VideoColorSpaceInit): VideoColorSpace;
14781
15310
  };
14782
15311
 
15312
+ interface VideoDecoderEventMap {
15313
+ "dequeue": Event;
15314
+ }
15315
+
15316
+ /** Available only in secure contexts. */
15317
+ interface VideoDecoder extends EventTarget {
15318
+ readonly decodeQueueSize: number;
15319
+ ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
15320
+ readonly state: CodecState;
15321
+ close(): void;
15322
+ configure(config: VideoDecoderConfig): void;
15323
+ decode(chunk: EncodedVideoChunk): void;
15324
+ flush(): Promise<void>;
15325
+ reset(): void;
15326
+ addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15327
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15328
+ removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
15329
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15330
+ }
15331
+
15332
+ declare var VideoDecoder: {
15333
+ prototype: VideoDecoder;
15334
+ new(init: VideoDecoderInit): VideoDecoder;
15335
+ isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
15336
+ };
15337
+
15338
+ interface VideoEncoderEventMap {
15339
+ "dequeue": Event;
15340
+ }
15341
+
15342
+ /** Available only in secure contexts. */
15343
+ interface VideoEncoder extends EventTarget {
15344
+ readonly encodeQueueSize: number;
15345
+ ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
15346
+ readonly state: CodecState;
15347
+ close(): void;
15348
+ configure(config: VideoEncoderConfig): void;
15349
+ encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
15350
+ flush(): Promise<void>;
15351
+ reset(): void;
15352
+ addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15353
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15354
+ removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
15355
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15356
+ }
15357
+
15358
+ declare var VideoEncoder: {
15359
+ prototype: VideoEncoder;
15360
+ new(init: VideoEncoderInit): VideoEncoder;
15361
+ isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
15362
+ };
15363
+
15364
+ interface VideoFrame {
15365
+ readonly codedHeight: number;
15366
+ readonly codedRect: DOMRectReadOnly | null;
15367
+ readonly codedWidth: number;
15368
+ readonly colorSpace: VideoColorSpace;
15369
+ readonly displayHeight: number;
15370
+ readonly displayWidth: number;
15371
+ readonly duration: number | null;
15372
+ readonly format: VideoPixelFormat | null;
15373
+ readonly timestamp: number;
15374
+ readonly visibleRect: DOMRectReadOnly | null;
15375
+ allocationSize(options?: VideoFrameCopyToOptions): number;
15376
+ clone(): VideoFrame;
15377
+ close(): void;
15378
+ copyTo(destination: BufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
15379
+ }
15380
+
15381
+ declare var VideoFrame: {
15382
+ prototype: VideoFrame;
15383
+ new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
15384
+ new(data: BufferSource, init: VideoFrameBufferInit): VideoFrame;
15385
+ };
15386
+
14783
15387
  /** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
14784
15388
  interface VideoPlaybackQuality {
14785
15389
  /** @deprecated */
@@ -14962,6 +15566,37 @@ interface WEBGL_multi_draw {
14962
15566
  multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
14963
15567
  }
14964
15568
 
15569
+ /** Available only in secure contexts. */
15570
+ interface WakeLock {
15571
+ request(type?: WakeLockType): Promise<WakeLockSentinel>;
15572
+ }
15573
+
15574
+ declare var WakeLock: {
15575
+ prototype: WakeLock;
15576
+ new(): WakeLock;
15577
+ };
15578
+
15579
+ interface WakeLockSentinelEventMap {
15580
+ "release": Event;
15581
+ }
15582
+
15583
+ /** Available only in secure contexts. */
15584
+ interface WakeLockSentinel extends EventTarget {
15585
+ onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null;
15586
+ readonly released: boolean;
15587
+ readonly type: WakeLockType;
15588
+ release(): Promise<void>;
15589
+ addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
15590
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
15591
+ removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
15592
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
15593
+ }
15594
+
15595
+ declare var WakeLockSentinel: {
15596
+ prototype: WakeLockSentinel;
15597
+ new(): WakeLockSentinel;
15598
+ };
15599
+
14965
15600
  /** A WaveShaperNode always has exactly one input and one output. */
14966
15601
  interface WaveShaperNode extends AudioNode {
14967
15602
  curve: Float32Array | null;
@@ -16310,6 +16945,7 @@ declare var WebGLRenderingContext: {
16310
16945
 
16311
16946
  interface WebGLRenderingContextBase {
16312
16947
  readonly canvas: HTMLCanvasElement | OffscreenCanvas;
16948
+ drawingBufferColorSpace: PredefinedColorSpace;
16313
16949
  readonly drawingBufferHeight: GLsizei;
16314
16950
  readonly drawingBufferWidth: GLsizei;
16315
16951
  activeTexture(texture: GLenum): void;
@@ -17509,9 +18145,64 @@ declare var console: Console;
17509
18145
 
17510
18146
  /** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
17511
18147
  declare namespace CSS {
18148
+ function Hz(value: number): CSSUnitValue;
18149
+ function Q(value: number): CSSUnitValue;
18150
+ function ch(value: number): CSSUnitValue;
18151
+ function cm(value: number): CSSUnitValue;
18152
+ function cqb(value: number): CSSUnitValue;
18153
+ function cqh(value: number): CSSUnitValue;
18154
+ function cqi(value: number): CSSUnitValue;
18155
+ function cqmax(value: number): CSSUnitValue;
18156
+ function cqmin(value: number): CSSUnitValue;
18157
+ function cqw(value: number): CSSUnitValue;
18158
+ function deg(value: number): CSSUnitValue;
18159
+ function dpcm(value: number): CSSUnitValue;
18160
+ function dpi(value: number): CSSUnitValue;
18161
+ function dppx(value: number): CSSUnitValue;
18162
+ function dvb(value: number): CSSUnitValue;
18163
+ function dvh(value: number): CSSUnitValue;
18164
+ function dvi(value: number): CSSUnitValue;
18165
+ function dvmax(value: number): CSSUnitValue;
18166
+ function dvmin(value: number): CSSUnitValue;
18167
+ function dvw(value: number): CSSUnitValue;
18168
+ function em(value: number): CSSUnitValue;
17512
18169
  function escape(ident: string): string;
18170
+ function ex(value: number): CSSUnitValue;
18171
+ function fr(value: number): CSSUnitValue;
18172
+ function grad(value: number): CSSUnitValue;
18173
+ function kHz(value: number): CSSUnitValue;
18174
+ function lvb(value: number): CSSUnitValue;
18175
+ function lvh(value: number): CSSUnitValue;
18176
+ function lvi(value: number): CSSUnitValue;
18177
+ function lvmax(value: number): CSSUnitValue;
18178
+ function lvmin(value: number): CSSUnitValue;
18179
+ function lvw(value: number): CSSUnitValue;
18180
+ function mm(value: number): CSSUnitValue;
18181
+ function ms(value: number): CSSUnitValue;
18182
+ function number(value: number): CSSUnitValue;
18183
+ function pc(value: number): CSSUnitValue;
18184
+ function percent(value: number): CSSUnitValue;
18185
+ function pt(value: number): CSSUnitValue;
18186
+ function px(value: number): CSSUnitValue;
18187
+ function rad(value: number): CSSUnitValue;
18188
+ function registerProperty(definition: PropertyDefinition): void;
18189
+ function rem(value: number): CSSUnitValue;
18190
+ function s(value: number): CSSUnitValue;
17513
18191
  function supports(property: string, value: string): boolean;
17514
18192
  function supports(conditionText: string): boolean;
18193
+ function svb(value: number): CSSUnitValue;
18194
+ function svh(value: number): CSSUnitValue;
18195
+ function svi(value: number): CSSUnitValue;
18196
+ function svmax(value: number): CSSUnitValue;
18197
+ function svmin(value: number): CSSUnitValue;
18198
+ function svw(value: number): CSSUnitValue;
18199
+ function turn(value: number): CSSUnitValue;
18200
+ function vb(value: number): CSSUnitValue;
18201
+ function vh(value: number): CSSUnitValue;
18202
+ function vi(value: number): CSSUnitValue;
18203
+ function vmax(value: number): CSSUnitValue;
18204
+ function vmin(value: number): CSSUnitValue;
18205
+ function vw(value: number): CSSUnitValue;
17515
18206
  }
17516
18207
 
17517
18208
  declare namespace WebAssembly {
@@ -17659,6 +18350,10 @@ interface DecodeSuccessCallback {
17659
18350
  (decodedData: AudioBuffer): void;
17660
18351
  }
17661
18352
 
18353
+ interface EncodedVideoChunkOutputCallback {
18354
+ (chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
18355
+ }
18356
+
17662
18357
  interface ErrorCallback {
17663
18358
  (err: DOMException): void;
17664
18359
  }
@@ -17743,6 +18438,10 @@ interface RemotePlaybackAvailabilityCallback {
17743
18438
  (available: boolean): void;
17744
18439
  }
17745
18440
 
18441
+ interface ReportingObserverCallback {
18442
+ (reports: Report[], observer: ReportingObserver): void;
18443
+ }
18444
+
17746
18445
  interface ResizeObserverCallback {
17747
18446
  (entries: ResizeObserverEntry[], observer: ResizeObserver): void;
17748
18447
  }
@@ -17787,6 +18486,10 @@ interface UnderlyingSourceStartCallback<R> {
17787
18486
  (controller: ReadableStreamController<R>): any;
17788
18487
  }
17789
18488
 
18489
+ interface VideoFrameOutputCallback {
18490
+ (output: VideoFrame): void;
18491
+ }
18492
+
17790
18493
  interface VideoFrameRequestCallback {
17791
18494
  (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
17792
18495
  }
@@ -17795,6 +18498,10 @@ interface VoidFunction {
17795
18498
  (): void;
17796
18499
  }
17797
18500
 
18501
+ interface WebCodecsErrorCallback {
18502
+ (error: DOMException): void;
18503
+ }
18504
+
17798
18505
  interface HTMLElementTagNameMap {
17799
18506
  "a": HTMLAnchorElement;
17800
18507
  "abbr": HTMLElement;
@@ -18500,8 +19207,11 @@ type BlobPart = BufferSource | Blob | string;
18500
19207
  type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
18501
19208
  type BufferSource = ArrayBufferView | ArrayBuffer;
18502
19209
  type COSEAlgorithmIdentifier = number;
18503
- type CSSNumberish = number;
18504
- type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
19210
+ type CSSKeywordish = string | CSSKeywordValue;
19211
+ type CSSNumberish = number | CSSNumericValue;
19212
+ type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
19213
+ type CSSUnparsedSegment = string | CSSVariableReferenceValue;
19214
+ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame;
18505
19215
  type ClipboardItemData = Promise<string | Blob>;
18506
19216
  type ClipboardItems = ClipboardItem[];
18507
19217
  type ConstrainBoolean = boolean | ConstrainBooleanParameters;
@@ -18545,15 +19255,17 @@ type ReadableStreamController<T> = ReadableStreamDefaultController<T> | Readable
18545
19255
  type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
18546
19256
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
18547
19257
  type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
19258
+ type ReportList = Report[];
18548
19259
  type RequestInfo = Request | string;
18549
- type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
19260
+ type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
18550
19261
  type TimerHandler = string | Function;
18551
- type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
19262
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
18552
19263
  type Uint32List = Uint32Array | GLuint[];
18553
19264
  type VibratePattern = number | number[];
18554
19265
  type WindowProxy = Window;
18555
19266
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
18556
19267
  type AlignSetting = "center" | "end" | "left" | "right" | "start";
19268
+ type AlphaOption = "discard" | "keep";
18557
19269
  type AnimationPlayState = "finished" | "idle" | "paused" | "running";
18558
19270
  type AnimationReplaceState = "active" | "persisted" | "removed";
18559
19271
  type AppendMode = "segments" | "sequence";
@@ -18564,8 +19276,12 @@ type AuthenticatorAttachment = "cross-platform" | "platform";
18564
19276
  type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
18565
19277
  type AutoKeyword = "auto";
18566
19278
  type AutomationRate = "a-rate" | "k-rate";
19279
+ type AvcBitstreamFormat = "annexb" | "avc";
18567
19280
  type BinaryType = "arraybuffer" | "blob";
18568
19281
  type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
19282
+ type BitrateMode = "constant" | "variable";
19283
+ type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
19284
+ type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
18569
19285
  type CanPlayTypeResult = "" | "maybe" | "probably";
18570
19286
  type CanvasDirection = "inherit" | "ltr" | "rtl";
18571
19287
  type CanvasFillRule = "evenodd" | "nonzero";
@@ -18580,6 +19296,7 @@ type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility"
18580
19296
  type ChannelCountMode = "clamped-max" | "explicit" | "max";
18581
19297
  type ChannelInterpretation = "discrete" | "speakers";
18582
19298
  type ClientTypes = "all" | "sharedworker" | "window" | "worker";
19299
+ type CodecState = "closed" | "configured" | "unconfigured";
18583
19300
  type ColorGamut = "p3" | "rec2020" | "srgb";
18584
19301
  type ColorSpaceConversion = "default" | "none";
18585
19302
  type CompositeOperation = "accumulate" | "add" | "replace";
@@ -18591,6 +19308,7 @@ type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
18591
19308
  type DistanceModelType = "exponential" | "inverse" | "linear";
18592
19309
  type DocumentReadyState = "complete" | "interactive" | "loading";
18593
19310
  type DocumentVisibilityState = "hidden" | "visible";
19311
+ type EncodedVideoChunkType = "delta" | "key";
18594
19312
  type EndOfStreamError = "decode" | "network";
18595
19313
  type EndingType = "native" | "transparent";
18596
19314
  type FileSystemHandleKind = "directory" | "file";
@@ -18600,8 +19318,11 @@ type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
18600
19318
  type FontFaceSetLoadStatus = "loaded" | "loading";
18601
19319
  type FullscreenNavigationUI = "auto" | "hide" | "show";
18602
19320
  type GamepadHapticActuatorType = "vibration";
19321
+ type GamepadHapticEffectType = "dual-rumble";
19322
+ type GamepadHapticsResult = "complete" | "preempted";
18603
19323
  type GamepadMappingType = "" | "standard" | "xr-standard";
18604
19324
  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";
19325
+ type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
18605
19326
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
18606
19327
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
18607
19328
  type IDBRequestReadyState = "done" | "pending";
@@ -18614,6 +19335,7 @@ type IterationCompositeOperation = "accumulate" | "replace";
18614
19335
  type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
18615
19336
  type KeyType = "private" | "public" | "secret";
18616
19337
  type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
19338
+ type LatencyMode = "quality" | "realtime";
18617
19339
  type LineAlignSetting = "center" | "end" | "start";
18618
19340
  type LockMode = "exclusive" | "shared";
18619
19341
  type MIDIPortConnectionState = "closed" | "open" | "pending";
@@ -18707,7 +19429,9 @@ type UserVerificationRequirement = "discouraged" | "preferred" | "required";
18707
19429
  type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
18708
19430
  type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
18709
19431
  type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
19432
+ type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
18710
19433
  type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
19434
+ type WakeLockType = "screen";
18711
19435
  type WebGLPowerPreference = "default" | "high-performance" | "low-power";
18712
19436
  type WorkerType = "classic" | "module";
18713
19437
  type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
package/iterable.d.ts CHANGED
@@ -18,6 +18,13 @@ interface CSSKeyframesRule {
18
18
  [Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
19
19
  }
20
20
 
21
+ interface CSSNumericArray {
22
+ [Symbol.iterator](): IterableIterator<CSSNumericValue>;
23
+ entries(): IterableIterator<[number, CSSNumericValue]>;
24
+ keys(): IterableIterator<number>;
25
+ values(): IterableIterator<CSSNumericValue>;
26
+ }
27
+
21
28
  interface CSSRuleList {
22
29
  [Symbol.iterator](): IterableIterator<CSSRule>;
23
30
  }
@@ -26,6 +33,20 @@ interface CSSStyleDeclaration {
26
33
  [Symbol.iterator](): IterableIterator<string>;
27
34
  }
28
35
 
36
+ interface CSSTransformValue {
37
+ [Symbol.iterator](): IterableIterator<CSSTransformComponent>;
38
+ entries(): IterableIterator<[number, CSSTransformComponent]>;
39
+ keys(): IterableIterator<number>;
40
+ values(): IterableIterator<CSSTransformComponent>;
41
+ }
42
+
43
+ interface CSSUnparsedValue {
44
+ [Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
45
+ entries(): IterableIterator<[number, CSSUnparsedSegment]>;
46
+ keys(): IterableIterator<number>;
47
+ values(): IterableIterator<CSSUnparsedSegment>;
48
+ }
49
+
29
50
  interface Cache {
30
51
  addAll(requests: Iterable<RequestInfo>): Promise<void>;
31
52
  }
@@ -228,6 +249,13 @@ interface SpeechRecognitionResultList {
228
249
  [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
229
250
  }
230
251
 
252
+ interface StylePropertyMapReadOnly {
253
+ [Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
254
+ entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
255
+ keys(): IterableIterator<string>;
256
+ values(): IterableIterator<Iterable<CSSStyleValue>>;
257
+ }
258
+
231
259
  interface StyleSheetList {
232
260
  [Symbol.iterator](): IterableIterator<CSSStyleSheet>;
233
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],