typescript 5.5.0-dev.20240419 → 5.5.0-dev.20240421

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.
@@ -26,3 +26,8 @@ interface FileSystemDirectoryHandle {
26
26
  keys(): AsyncIterableIterator<string>;
27
27
  values(): AsyncIterableIterator<FileSystemHandle>;
28
28
  }
29
+
30
+ interface ReadableStream<R = any> {
31
+ [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
32
+ values(options?: ReadableStreamIteratorOptions): AsyncIterableIterator<R>;
33
+ }
package/lib/lib.dom.d.ts CHANGED
@@ -219,6 +219,9 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
219
219
  interface CheckVisibilityOptions {
220
220
  checkOpacity?: boolean;
221
221
  checkVisibilityCSS?: boolean;
222
+ contentVisibilityAuto?: boolean;
223
+ opacityProperty?: boolean;
224
+ visibilityProperty?: boolean;
222
225
  }
223
226
 
224
227
  interface ClientQueryOptions {
@@ -285,6 +288,10 @@ interface ConstrainULongRange extends ULongRange {
285
288
  ideal?: number;
286
289
  }
287
290
 
291
+ interface ContentVisibilityAutoStateChangeEventInit extends EventInit {
292
+ skipped?: boolean;
293
+ }
294
+
288
295
  interface ConvolverOptions extends AudioNodeOptions {
289
296
  buffer?: AudioBuffer | null;
290
297
  disableNormalization?: boolean;
@@ -574,6 +581,8 @@ interface GainOptions extends AudioNodeOptions {
574
581
 
575
582
  interface GamepadEffectParameters {
576
583
  duration?: number;
584
+ leftTrigger?: number;
585
+ rightTrigger?: number;
577
586
  startDelay?: number;
578
587
  strongMagnitude?: number;
579
588
  weakMagnitude?: number;
@@ -1376,8 +1385,8 @@ interface RTCIceCandidateInit {
1376
1385
  }
1377
1386
 
1378
1387
  interface RTCIceCandidatePair {
1379
- local?: RTCIceCandidate;
1380
- remote?: RTCIceCandidate;
1388
+ local: RTCIceCandidate;
1389
+ remote: RTCIceCandidate;
1381
1390
  }
1382
1391
 
1383
1392
  interface RTCIceCandidatePairStats extends RTCStats {
@@ -1637,6 +1646,17 @@ interface ReadableStreamGetReaderOptions {
1637
1646
  mode?: ReadableStreamReaderMode;
1638
1647
  }
1639
1648
 
1649
+ interface ReadableStreamIteratorOptions {
1650
+ /**
1651
+ * Asynchronously iterates over the chunks in the stream's internal queue.
1652
+ *
1653
+ * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop.
1654
+ *
1655
+ * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option.
1656
+ */
1657
+ preventCancel?: boolean;
1658
+ }
1659
+
1640
1660
  interface ReadableStreamReadDoneResult<T> {
1641
1661
  done: true;
1642
1662
  value?: T;
@@ -1768,21 +1788,22 @@ interface ScrollToOptions extends ScrollOptions {
1768
1788
  interface SecurityPolicyViolationEventInit extends EventInit {
1769
1789
  blockedURI?: string;
1770
1790
  columnNumber?: number;
1771
- disposition: SecurityPolicyViolationEventDisposition;
1772
- documentURI: string;
1773
- effectiveDirective: string;
1791
+ disposition?: SecurityPolicyViolationEventDisposition;
1792
+ documentURI?: string;
1793
+ effectiveDirective?: string;
1774
1794
  lineNumber?: number;
1775
- originalPolicy: string;
1795
+ originalPolicy?: string;
1776
1796
  referrer?: string;
1777
1797
  sample?: string;
1778
1798
  sourceFile?: string;
1779
- statusCode: number;
1780
- violatedDirective: string;
1799
+ statusCode?: number;
1800
+ violatedDirective?: string;
1781
1801
  }
1782
1802
 
1783
1803
  interface ShadowRootInit {
1784
1804
  delegatesFocus?: boolean;
1785
1805
  mode: ShadowRootMode;
1806
+ serializable?: boolean;
1786
1807
  slotAssignment?: SlotAssignmentMode;
1787
1808
  }
1788
1809
 
@@ -2207,6 +2228,8 @@ interface ARIAMixin {
2207
2228
  ariaAtomic: string | null;
2208
2229
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
2209
2230
  ariaAutoComplete: string | null;
2231
+ ariaBrailleLabel: string | null;
2232
+ ariaBrailleRoleDescription: string | null;
2210
2233
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
2211
2234
  ariaBusy: string | null;
2212
2235
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
@@ -2339,6 +2362,8 @@ declare var AbortSignal: {
2339
2362
  new(): AbortSignal;
2340
2363
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
2341
2364
  abort(reason?: any): AbortSignal;
2365
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
2366
+ any(signals: AbortSignal[]): AbortSignal;
2342
2367
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
2343
2368
  timeout(milliseconds: number): AbortSignal;
2344
2369
  };
@@ -3788,6 +3813,16 @@ declare var CSSScale: {
3788
3813
  new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
3789
3814
  };
3790
3815
 
3816
+ interface CSSScopeRule extends CSSGroupingRule {
3817
+ readonly end: string | null;
3818
+ readonly start: string | null;
3819
+ }
3820
+
3821
+ declare var CSSScopeRule: {
3822
+ prototype: CSSScopeRule;
3823
+ new(): CSSScopeRule;
3824
+ };
3825
+
3791
3826
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
3792
3827
  interface CSSSkew extends CSSTransformComponent {
3793
3828
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
@@ -3823,6 +3858,15 @@ declare var CSSSkewY: {
3823
3858
  new(ay: CSSNumericValue): CSSSkewY;
3824
3859
  };
3825
3860
 
3861
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */
3862
+ interface CSSStartingStyleRule extends CSSGroupingRule {
3863
+ }
3864
+
3865
+ declare var CSSStartingStyleRule: {
3866
+ prototype: CSSStartingStyleRule;
3867
+ new(): CSSStartingStyleRule;
3868
+ };
3869
+
3826
3870
  /**
3827
3871
  * An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
3828
3872
  *
@@ -4048,6 +4092,7 @@ interface CSSStyleDeclaration {
4048
4092
  clipRule: string;
4049
4093
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
4050
4094
  color: string;
4095
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */
4051
4096
  colorInterpolation: string;
4052
4097
  colorInterpolationFilters: string;
4053
4098
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
@@ -4092,6 +4137,8 @@ interface CSSStyleDeclaration {
4092
4137
  containerType: string;
4093
4138
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
4094
4139
  content: string;
4140
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */
4141
+ contentVisibility: string;
4095
4142
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
4096
4143
  counterIncrement: string;
4097
4144
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
@@ -4593,6 +4640,8 @@ interface CSSStyleDeclaration {
4593
4640
  textUnderlinePosition: string;
4594
4641
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
4595
4642
  textWrap: string;
4643
+ textWrapMode: string;
4644
+ textWrapStyle: string;
4596
4645
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
4597
4646
  top: string;
4598
4647
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
@@ -4607,6 +4656,8 @@ interface CSSStyleDeclaration {
4607
4656
  transformStyle: string;
4608
4657
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
4609
4658
  transition: string;
4659
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */
4660
+ transitionBehavior: string;
4610
4661
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
4611
4662
  transitionDelay: string;
4612
4663
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
@@ -5028,6 +5079,8 @@ interface CSSStyleDeclaration {
5028
5079
  webkitUserSelect: string;
5029
5080
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
5030
5081
  whiteSpace: string;
5082
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */
5083
+ whiteSpaceCollapse: string;
5031
5084
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
5032
5085
  widows: string;
5033
5086
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
@@ -5046,6 +5099,8 @@ interface CSSStyleDeclaration {
5046
5099
  y: string;
5047
5100
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
5048
5101
  zIndex: string;
5102
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */
5103
+ zoom: string;
5049
5104
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
5050
5105
  getPropertyPriority(property: string): string;
5051
5106
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
@@ -5809,6 +5864,17 @@ declare var ConstantSourceNode: {
5809
5864
  new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
5810
5865
  };
5811
5866
 
5867
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */
5868
+ interface ContentVisibilityAutoStateChangeEvent extends Event {
5869
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */
5870
+ readonly skipped: boolean;
5871
+ }
5872
+
5873
+ declare var ContentVisibilityAutoStateChangeEvent: {
5874
+ prototype: ContentVisibilityAutoStateChangeEvent;
5875
+ new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent;
5876
+ };
5877
+
5812
5878
  /**
5813
5879
  * An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
5814
5880
  *
@@ -5970,6 +6036,16 @@ declare var CustomEvent: {
5970
6036
  new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
5971
6037
  };
5972
6038
 
6039
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */
6040
+ interface CustomStateSet {
6041
+ forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void;
6042
+ }
6043
+
6044
+ declare var CustomStateSet: {
6045
+ prototype: CustomStateSet;
6046
+ new(): CustomStateSet;
6047
+ };
6048
+
5973
6049
  /**
5974
6050
  * An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
5975
6051
  *
@@ -7158,6 +7234,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7158
7234
  createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
7159
7235
  createEvent(eventInterface: "CloseEvent"): CloseEvent;
7160
7236
  createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
7237
+ createEvent(eventInterface: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent;
7161
7238
  createEvent(eventInterface: "CustomEvent"): CustomEvent;
7162
7239
  createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
7163
7240
  createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
@@ -7419,6 +7496,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
7419
7496
  declare var Document: {
7420
7497
  prototype: Document;
7421
7498
  new(): Document;
7499
+ parseHTMLUnsafe(html: string): Document;
7422
7500
  };
7423
7501
 
7424
7502
  /**
@@ -7869,6 +7947,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
7869
7947
  setAttributeNode(attr: Attr): Attr | null;
7870
7948
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
7871
7949
  setAttributeNodeNS(attr: Attr): Attr | null;
7950
+ setHTMLUnsafe(html: string): void;
7872
7951
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
7873
7952
  setPointerCapture(pointerId: number): void;
7874
7953
  /**
@@ -7933,6 +8012,8 @@ interface ElementInternals extends ARIAMixin {
7933
8012
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
7934
8013
  */
7935
8014
  readonly shadowRoot: ShadowRoot | null;
8015
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */
8016
+ readonly states: CustomStateSet;
7936
8017
  /**
7937
8018
  * Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
7938
8019
  *
@@ -8711,7 +8792,6 @@ declare var GainNode: {
8711
8792
 
8712
8793
  /**
8713
8794
  * This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
8714
- * Available only in secure contexts.
8715
8795
  *
8716
8796
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
8717
8797
  */
@@ -8730,7 +8810,7 @@ interface Gamepad {
8730
8810
  readonly mapping: GamepadMappingType;
8731
8811
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
8732
8812
  readonly timestamp: DOMHighResTimeStamp;
8733
- readonly vibrationActuator: GamepadHapticActuator | null;
8813
+ readonly vibrationActuator: GamepadHapticActuator;
8734
8814
  }
8735
8815
 
8736
8816
  declare var Gamepad: {
@@ -8740,7 +8820,6 @@ declare var Gamepad: {
8740
8820
 
8741
8821
  /**
8742
8822
  * An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
8743
- * Available only in secure contexts.
8744
8823
  *
8745
8824
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
8746
8825
  */
@@ -8760,7 +8839,6 @@ declare var GamepadButton: {
8760
8839
 
8761
8840
  /**
8762
8841
  * This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
8763
- * Available only in secure contexts.
8764
8842
  *
8765
8843
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
8766
8844
  */
@@ -8780,8 +8858,6 @@ declare var GamepadEvent: {
8780
8858
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
8781
8859
  */
8782
8860
  interface GamepadHapticActuator {
8783
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */
8784
- readonly type: GamepadHapticActuatorType;
8785
8861
  playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
8786
8862
  reset(): Promise<GamepadHapticsResult>;
8787
8863
  }
@@ -9492,6 +9568,7 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
9492
9568
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
9493
9569
  */
9494
9570
  name: string;
9571
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */
9495
9572
  ping: string;
9496
9573
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
9497
9574
  referrerPolicy: string;
@@ -9569,6 +9646,7 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
9569
9646
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
9570
9647
  */
9571
9648
  noHref: boolean;
9649
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */
9572
9650
  ping: string;
9573
9651
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
9574
9652
  referrerPolicy: string;
@@ -10164,7 +10242,11 @@ declare var HTMLElement: {
10164
10242
  interface HTMLEmbedElement extends HTMLElement {
10165
10243
  /** @deprecated */
10166
10244
  align: string;
10167
- /** Sets or retrieves the height of the object. */
10245
+ /**
10246
+ * Sets or retrieves the height of the object.
10247
+ *
10248
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/height)
10249
+ */
10168
10250
  height: string;
10169
10251
  /**
10170
10252
  * Sets or retrieves the name of the object.
@@ -10174,7 +10256,11 @@ interface HTMLEmbedElement extends HTMLElement {
10174
10256
  /** Sets or retrieves a URL to be loaded by the object. */
10175
10257
  src: string;
10176
10258
  type: string;
10177
- /** Sets or retrieves the width of the object. */
10259
+ /**
10260
+ * Sets or retrieves the width of the object.
10261
+ *
10262
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement/width)
10263
+ */
10178
10264
  width: string;
10179
10265
  getSVGDocument(): Document | null;
10180
10266
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -10747,6 +10833,7 @@ interface HTMLIFrameElement extends HTMLElement {
10747
10833
  */
10748
10834
  align: string;
10749
10835
  allow: string;
10836
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/allowFullscreen) */
10750
10837
  allowFullscreen: boolean;
10751
10838
  /**
10752
10839
  * Retrieves the document object of the page or frame.
@@ -10773,6 +10860,7 @@ interface HTMLIFrameElement extends HTMLElement {
10773
10860
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
10774
10861
  */
10775
10862
  height: string;
10863
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/loading) */
10776
10864
  loading: string;
10777
10865
  /**
10778
10866
  * Sets or retrieves a URI to a long description of the object.
@@ -11012,7 +11100,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11012
11100
  checked: boolean;
11013
11101
  /** Sets or retrieves the state of the check box or radio button. */
11014
11102
  defaultChecked: boolean;
11015
- /** Sets or retrieves the initial contents of the object. */
11103
+ /**
11104
+ * Sets or retrieves the initial contents of the object.
11105
+ *
11106
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultValue)
11107
+ */
11016
11108
  defaultValue: string;
11017
11109
  dirName: string;
11018
11110
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
@@ -11071,12 +11163,25 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11071
11163
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
11072
11164
  */
11073
11165
  readonly list: HTMLDataListElement | null;
11074
- /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
11166
+ /**
11167
+ * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
11168
+ *
11169
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/max)
11170
+ */
11075
11171
  max: string;
11076
- /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
11172
+ /**
11173
+ * Sets or retrieves the maximum number of characters that the user can enter in a text control.
11174
+ *
11175
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/maxLength)
11176
+ */
11077
11177
  maxLength: number;
11078
- /** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
11178
+ /**
11179
+ * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
11180
+ *
11181
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/min)
11182
+ */
11079
11183
  min: string;
11184
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/minLength) */
11080
11185
  minLength: number;
11081
11186
  /**
11082
11187
  * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
@@ -11107,16 +11212,28 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11107
11212
  required: boolean;
11108
11213
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
11109
11214
  selectionDirection: "forward" | "backward" | "none" | null;
11110
- /** Gets or sets the end position or offset of a text selection. */
11215
+ /**
11216
+ * Gets or sets the end position or offset of a text selection.
11217
+ *
11218
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionEnd)
11219
+ */
11111
11220
  selectionEnd: number | null;
11112
- /** Gets or sets the starting position or offset of a text selection. */
11221
+ /**
11222
+ * Gets or sets the starting position or offset of a text selection.
11223
+ *
11224
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
11225
+ */
11113
11226
  selectionStart: number | null;
11114
11227
  size: number;
11115
11228
  /** The address or URL of the a media resource that is to be considered. */
11116
11229
  src: string;
11117
11230
  /** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
11118
11231
  step: string;
11119
- /** Returns the content type of the object. */
11232
+ /**
11233
+ * Returns the content type of the object.
11234
+ *
11235
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/type)
11236
+ */
11120
11237
  type: string;
11121
11238
  /**
11122
11239
  * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
@@ -11135,7 +11252,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
11135
11252
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
11136
11253
  */
11137
11254
  readonly validity: ValidityState;
11138
- /** Returns the value of the data at the cursor's current position. */
11255
+ /**
11256
+ * Returns the value of the data at the cursor's current position.
11257
+ *
11258
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
11259
+ */
11139
11260
  value: string;
11140
11261
  /** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
11141
11262
  valueAsDate: Date | null;
@@ -11695,16 +11816,31 @@ declare var HTMLMenuElement: {
11695
11816
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
11696
11817
  */
11697
11818
  interface HTMLMetaElement extends HTMLElement {
11698
- /** Gets or sets meta-information to associate with httpEquiv or name. */
11819
+ /**
11820
+ * Gets or sets meta-information to associate with httpEquiv or name.
11821
+ *
11822
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/content)
11823
+ */
11699
11824
  content: string;
11700
- /** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
11825
+ /**
11826
+ * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
11827
+ *
11828
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/httpEquiv)
11829
+ */
11701
11830
  httpEquiv: string;
11831
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/media) */
11702
11832
  media: string;
11703
- /** Sets or retrieves the value specified in the content attribute of the meta object. */
11833
+ /**
11834
+ * Sets or retrieves the value specified in the content attribute of the meta object.
11835
+ *
11836
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/name)
11837
+ */
11704
11838
  name: string;
11705
11839
  /**
11706
11840
  * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
11707
11841
  * @deprecated
11842
+ *
11843
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement/scheme)
11708
11844
  */
11709
11845
  scheme: string;
11710
11846
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -11916,6 +12052,7 @@ interface HTMLObjectElement extends HTMLElement {
11916
12052
  type: string;
11917
12053
  /**
11918
12054
  * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
12055
+ * @deprecated
11919
12056
  *
11920
12057
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
11921
12058
  */
@@ -12470,7 +12607,7 @@ interface HTMLSelectElement extends HTMLElement {
12470
12607
  *
12471
12608
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
12472
12609
  */
12473
- readonly type: string;
12610
+ readonly type: "select-one" | "select-multiple";
12474
12611
  /**
12475
12612
  * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
12476
12613
  *
@@ -12582,6 +12719,7 @@ declare var HTMLSlotElement: {
12582
12719
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
12583
12720
  */
12584
12721
  interface HTMLSourceElement extends HTMLElement {
12722
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/height) */
12585
12723
  height: number;
12586
12724
  /**
12587
12725
  * Gets or sets the intended media type of the media source.
@@ -12605,6 +12743,7 @@ interface HTMLSourceElement extends HTMLElement {
12605
12743
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
12606
12744
  */
12607
12745
  type: string;
12746
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/width) */
12608
12747
  width: number;
12609
12748
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
12610
12749
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -13246,7 +13385,11 @@ interface HTMLTextAreaElement extends HTMLElement {
13246
13385
  selectionStart: number;
13247
13386
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
13248
13387
  readonly textLength: number;
13249
- /** Retrieves the type of control. */
13388
+ /**
13389
+ * Retrieves the type of control.
13390
+ *
13391
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/type)
13392
+ */
13250
13393
  readonly type: string;
13251
13394
  /** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
13252
13395
  readonly validationMessage: string;
@@ -13469,11 +13612,13 @@ interface HTMLVideoElement extends HTMLMediaElement {
13469
13612
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
13470
13613
  */
13471
13614
  width: number;
13615
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/cancelVideoFrameCallback) */
13472
13616
  cancelVideoFrameCallback(handle: number): void;
13473
13617
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
13474
13618
  getVideoPlaybackQuality(): VideoPlaybackQuality;
13475
13619
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
13476
13620
  requestPictureInPicture(): Promise<PictureInPictureWindow>;
13621
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestVideoFrameCallback) */
13477
13622
  requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
13478
13623
  addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13479
13624
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -14555,6 +14700,29 @@ declare var KeyframeEffect: {
14555
14700
  new(source: KeyframeEffect): KeyframeEffect;
14556
14701
  };
14557
14702
 
14703
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint) */
14704
+ interface LargestContentfulPaint extends PerformanceEntry {
14705
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/element) */
14706
+ readonly element: Element | null;
14707
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/id) */
14708
+ readonly id: string;
14709
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/loadTime) */
14710
+ readonly loadTime: DOMHighResTimeStamp;
14711
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/renderTime) */
14712
+ readonly renderTime: DOMHighResTimeStamp;
14713
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/size) */
14714
+ readonly size: number;
14715
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/url) */
14716
+ readonly url: string;
14717
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LargestContentfulPaint/toJSON) */
14718
+ toJSON(): any;
14719
+ }
14720
+
14721
+ declare var LargestContentfulPaint: {
14722
+ prototype: LargestContentfulPaint;
14723
+ new(): LargestContentfulPaint;
14724
+ };
14725
+
14558
14726
  interface LinkStyle {
14559
14727
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
14560
14728
  readonly sheet: CSSStyleSheet | null;
@@ -21392,6 +21560,8 @@ interface ShadowRootEventMap {
21392
21560
 
21393
21561
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
21394
21562
  interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
21563
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/clonable) */
21564
+ readonly clonable: boolean;
21395
21565
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
21396
21566
  readonly delegatesFocus: boolean;
21397
21567
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
@@ -21401,6 +21571,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
21401
21571
  onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
21402
21572
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
21403
21573
  readonly slotAssignment: SlotAssignmentMode;
21574
+ setHTMLUnsafe(html: string): void;
21404
21575
  /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
21405
21576
  addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
21406
21577
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -25921,7 +26092,11 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
25921
26092
  readonly window: Window & typeof globalThis;
25922
26093
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
25923
26094
  alert(message?: any): void;
25924
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
26095
+ /**
26096
+ * @deprecated
26097
+ *
26098
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
26099
+ */
25925
26100
  blur(): void;
25926
26101
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
25927
26102
  cancelIdleCallback(handle: number): void;
@@ -27546,7 +27721,11 @@ declare var visualViewport: VisualViewport | null;
27546
27721
  declare var window: Window & typeof globalThis;
27547
27722
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
27548
27723
  declare function alert(message?: any): void;
27549
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
27724
+ /**
27725
+ * @deprecated
27726
+ *
27727
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur)
27728
+ */
27550
27729
  declare function blur(): void;
27551
27730
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
27552
27731
  declare function cancelIdleCallback(handle: number): void;
@@ -28293,8 +28472,7 @@ type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
28293
28472
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
28294
28473
  type FontFaceSetLoadStatus = "loaded" | "loading";
28295
28474
  type FullscreenNavigationUI = "auto" | "hide" | "show";
28296
- type GamepadHapticActuatorType = "vibration";
28297
- type GamepadHapticEffectType = "dual-rumble";
28475
+ type GamepadHapticEffectType = "dual-rumble" | "trigger-rumble";
28298
28476
  type GamepadHapticsResult = "complete" | "preempted";
28299
28477
  type GamepadMappingType = "" | "standard" | "xr-standard";
28300
28478
  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";
@@ -20,6 +20,11 @@ and limitations under the License.
20
20
  /// Window Iterable APIs
21
21
  /////////////////////////////
22
22
 
23
+ interface AbortSignal {
24
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
25
+ any(signals: Iterable<AbortSignal>): AbortSignal;
26
+ }
27
+
23
28
  interface AudioParam {
24
29
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
25
30
  setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
@@ -83,6 +88,9 @@ interface CanvasPathDrawingStyles {
83
88
  setLineDash(segments: Iterable<number>): void;
84
89
  }
85
90
 
91
+ interface CustomStateSet extends Set<string> {
92
+ }
93
+
86
94
  interface DOMRectList {
87
95
  [Symbol.iterator](): IterableIterator<DOMRect>;
88
96
  }
@@ -25,3 +25,4 @@ and limitations under the License.
25
25
  /// <reference lib="esnext.collection" />
26
26
  /// <reference lib="esnext.array" />
27
27
  /// <reference lib="esnext.regexp" />
28
+ /// <reference lib="esnext.string" />