@types/web 0.0.274 → 0.0.276

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.274 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.274.
50
+ You can read what changed in version 0.0.276 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.276.
package/index.d.ts CHANGED
@@ -2312,6 +2312,7 @@ interface TextEncoderEncodeIntoResult {
2312
2312
  interface ToggleEventInit extends EventInit {
2313
2313
  newState?: string;
2314
2314
  oldState?: string;
2315
+ source?: Element | null;
2315
2316
  }
2316
2317
 
2317
2318
  interface TouchEventInit extends EventModifierInit {
@@ -3280,7 +3281,11 @@ interface AnimationTimeline {
3280
3281
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3281
3282
  */
3282
3283
  readonly currentTime: CSSNumberish | null;
3283
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3284
+ /**
3285
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3286
+ *
3287
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3288
+ */
3284
3289
  readonly duration: CSSNumberish | null;
3285
3290
  }
3286
3291
 
@@ -14140,7 +14145,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14140
14145
  */
14141
14146
  innerText: string;
14142
14147
  /**
14143
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14148
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14144
14149
  *
14145
14150
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14146
14151
  */
@@ -15489,7 +15494,7 @@ interface HTMLLabelElement extends HTMLElement {
15489
15494
  */
15490
15495
  readonly control: HTMLElement | null;
15491
15496
  /**
15492
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15497
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15493
15498
  *
15494
15499
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15495
15500
  */
@@ -16800,7 +16805,7 @@ interface HTMLScriptElement extends HTMLElement {
16800
16805
  */
16801
16806
  src: string;
16802
16807
  /**
16803
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16808
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16804
16809
  *
16805
16810
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16806
16811
  */
@@ -26765,6 +26770,7 @@ declare var Response: {
26765
26770
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26766
26771
  */
26767
26772
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26773
+ download: string;
26768
26774
  /**
26769
26775
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26770
26776
  *
@@ -29145,6 +29151,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29145
29151
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29146
29152
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29147
29153
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29154
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29148
29155
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29149
29156
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29150
29157
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29160,6 +29167,7 @@ declare var SVGMarkerElement: {
29160
29167
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29161
29168
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29162
29169
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29170
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29163
29171
  };
29164
29172
 
29165
29173
  /**
@@ -29804,7 +29812,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29804
29812
  *
29805
29813
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29806
29814
  */
29807
- getElementById(elementId: string): Element;
29815
+ getElementById(elementId: string): Element | null;
29808
29816
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29809
29817
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29810
29818
  /**
@@ -29979,6 +29987,11 @@ declare var SVGStringList: {
29979
29987
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29980
29988
  */
29981
29989
  interface SVGStyleElement extends SVGElement, LinkStyle {
29990
+ /**
29991
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29992
+ *
29993
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29994
+ */
29982
29995
  disabled: boolean;
29983
29996
  /**
29984
29997
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -30635,7 +30648,7 @@ interface ScreenOrientation extends EventTarget {
30635
30648
  */
30636
30649
  lock(orientation: OrientationLockType): Promise<void>;
30637
30650
  /**
30638
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30651
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30639
30652
  *
30640
30653
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30641
30654
  */
@@ -31101,12 +31114,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31101
31114
  readonly navigationPreload: NavigationPreloadManager;
31102
31115
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31103
31116
  onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
31104
- /**
31105
- * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
31106
- *
31107
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
31108
- */
31109
- readonly pushManager: PushManager;
31110
31117
  /**
31111
31118
  * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
31112
31119
  *
@@ -31302,10 +31309,15 @@ interface SourceBuffer extends EventTarget {
31302
31309
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31303
31310
  */
31304
31311
  mode: AppendMode;
31312
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31305
31313
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31314
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31306
31315
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31316
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31307
31317
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31318
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31308
31319
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31320
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31309
31321
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31310
31322
  /**
31311
31323
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38355,6 +38367,37 @@ declare namespace WebAssembly {
38355
38367
  (message?: string): CompileError;
38356
38368
  };
38357
38369
 
38370
+ /**
38371
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38372
+ *
38373
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38374
+ */
38375
+ interface Exception {
38376
+ /**
38377
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38378
+ *
38379
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38380
+ */
38381
+ readonly stack: string | undefined;
38382
+ /**
38383
+ * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
38384
+ *
38385
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38386
+ */
38387
+ getArg(index: number): any;
38388
+ /**
38389
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38390
+ *
38391
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38392
+ */
38393
+ is(exceptionTag: Tag): boolean;
38394
+ }
38395
+
38396
+ var Exception: {
38397
+ prototype: Exception;
38398
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38399
+ };
38400
+
38358
38401
  /**
38359
38402
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38360
38403
  *
@@ -38415,7 +38458,7 @@ declare namespace WebAssembly {
38415
38458
  *
38416
38459
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38417
38460
  */
38418
- grow(delta: number): number;
38461
+ grow(delta: AddressValue): AddressValue;
38419
38462
  }
38420
38463
 
38421
38464
  var Memory: {
@@ -38433,7 +38476,7 @@ declare namespace WebAssembly {
38433
38476
 
38434
38477
  var Module: {
38435
38478
  prototype: Module;
38436
- new(bytes: BufferSource): Module;
38479
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38437
38480
  /**
38438
38481
  * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
38439
38482
  *
@@ -38474,25 +38517,25 @@ declare namespace WebAssembly {
38474
38517
  *
38475
38518
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38476
38519
  */
38477
- readonly length: number;
38520
+ readonly length: AddressValue;
38478
38521
  /**
38479
38522
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38480
38523
  *
38481
38524
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38482
38525
  */
38483
- get(index: number): any;
38526
+ get(index: AddressValue): any;
38484
38527
  /**
38485
38528
  * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value.
38486
38529
  *
38487
38530
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38488
38531
  */
38489
- grow(delta: number, value?: any): number;
38532
+ grow(delta: AddressValue, value?: any): AddressValue;
38490
38533
  /**
38491
38534
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38492
38535
  *
38493
38536
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38494
38537
  */
38495
- set(index: number, value?: any): void;
38538
+ set(index: AddressValue, value?: any): void;
38496
38539
  }
38497
38540
 
38498
38541
  var Table: {
@@ -38500,14 +38543,32 @@ declare namespace WebAssembly {
38500
38543
  new(descriptor: TableDescriptor, value?: any): Table;
38501
38544
  };
38502
38545
 
38546
+ /**
38547
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38548
+ *
38549
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38550
+ */
38551
+ interface Tag {
38552
+ }
38553
+
38554
+ var Tag: {
38555
+ prototype: Tag;
38556
+ new(type: TagType): Tag;
38557
+ };
38558
+
38559
+ interface ExceptionOptions {
38560
+ traceStack?: boolean;
38561
+ }
38562
+
38503
38563
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38504
38564
  mutable?: boolean;
38505
38565
  value: T;
38506
38566
  }
38507
38567
 
38508
38568
  interface MemoryDescriptor {
38509
- initial: number;
38510
- maximum?: number;
38569
+ address?: AddressType;
38570
+ initial: AddressValue;
38571
+ maximum?: AddressValue;
38511
38572
  shared?: boolean;
38512
38573
  }
38513
38574
 
@@ -38523,9 +38584,14 @@ declare namespace WebAssembly {
38523
38584
  }
38524
38585
 
38525
38586
  interface TableDescriptor {
38587
+ address?: AddressType;
38526
38588
  element: TableKind;
38527
- initial: number;
38528
- maximum?: number;
38589
+ initial: AddressValue;
38590
+ maximum?: AddressValue;
38591
+ }
38592
+
38593
+ interface TagType {
38594
+ parameters: ValueType[];
38529
38595
  }
38530
38596
 
38531
38597
  interface ValueTypeMap {
@@ -38538,30 +38604,38 @@ declare namespace WebAssembly {
38538
38604
  v128: never;
38539
38605
  }
38540
38606
 
38607
+ interface WebAssemblyCompileOptions {
38608
+ builtins?: string[];
38609
+ importedStringConstants?: string | null;
38610
+ }
38611
+
38541
38612
  interface WebAssemblyInstantiatedSource {
38542
38613
  instance: Instance;
38543
38614
  module: Module;
38544
38615
  }
38545
38616
 
38546
- type ImportExportKind = "function" | "global" | "memory" | "table";
38617
+ type AddressType = "i32" | "i64";
38618
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38547
38619
  type TableKind = "anyfunc" | "externref";
38620
+ type AddressValue = number;
38548
38621
  type ExportValue = Function | Global | Memory | Table;
38549
38622
  type Exports = Record<string, ExportValue>;
38550
38623
  type ImportValue = ExportValue | number;
38551
38624
  type Imports = Record<string, ModuleImports>;
38552
38625
  type ModuleImports = Record<string, ImportValue>;
38553
38626
  type ValueType = keyof ValueTypeMap;
38627
+ var JSTag: Tag;
38554
38628
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38555
- function compile(bytes: BufferSource): Promise<Module>;
38629
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38556
38630
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38557
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38631
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38558
38632
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38559
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38633
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38560
38634
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38561
38635
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38562
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38636
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38563
38637
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38564
- function validate(bytes: BufferSource): boolean;
38638
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38565
38639
  }
38566
38640
 
38567
38641
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -40078,7 +40152,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40078
40152
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40079
40153
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40080
40154
  type MediaStreamTrackState = "ended" | "live";
40081
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40155
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40082
40156
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40083
40157
  type NotificationDirection = "auto" | "ltr" | "rtl";
40084
40158
  type NotificationPermission = "default" | "denied" | "granted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.274",
3
+ "version": "0.0.276",
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
@@ -2309,6 +2309,7 @@ interface TextEncoderEncodeIntoResult {
2309
2309
  interface ToggleEventInit extends EventInit {
2310
2310
  newState?: string;
2311
2311
  oldState?: string;
2312
+ source?: Element | null;
2312
2313
  }
2313
2314
 
2314
2315
  interface TouchEventInit extends EventModifierInit {
@@ -3277,7 +3278,11 @@ interface AnimationTimeline {
3277
3278
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3278
3279
  */
3279
3280
  readonly currentTime: CSSNumberish | null;
3280
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3281
+ /**
3282
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3283
+ *
3284
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3285
+ */
3281
3286
  readonly duration: CSSNumberish | null;
3282
3287
  }
3283
3288
 
@@ -14124,7 +14129,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14124
14129
  */
14125
14130
  innerText: string;
14126
14131
  /**
14127
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14132
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14128
14133
  *
14129
14134
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14130
14135
  */
@@ -15471,7 +15476,7 @@ interface HTMLLabelElement extends HTMLElement {
15471
15476
  */
15472
15477
  readonly control: HTMLElement | null;
15473
15478
  /**
15474
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15479
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15475
15480
  *
15476
15481
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15477
15482
  */
@@ -16777,7 +16782,7 @@ interface HTMLScriptElement extends HTMLElement {
16777
16782
  */
16778
16783
  src: string;
16779
16784
  /**
16780
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16785
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16781
16786
  *
16782
16787
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16783
16788
  */
@@ -26741,6 +26746,7 @@ declare var Response: {
26741
26746
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26742
26747
  */
26743
26748
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26749
+ download: string;
26744
26750
  /**
26745
26751
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26746
26752
  *
@@ -29120,6 +29126,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29120
29126
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29121
29127
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29122
29128
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29129
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29123
29130
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29124
29131
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29125
29132
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29135,6 +29142,7 @@ declare var SVGMarkerElement: {
29135
29142
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29136
29143
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29137
29144
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29145
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29138
29146
  };
29139
29147
 
29140
29148
  /**
@@ -29779,7 +29787,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29779
29787
  *
29780
29788
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29781
29789
  */
29782
- getElementById(elementId: string): Element;
29790
+ getElementById(elementId: string): Element | null;
29783
29791
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29784
29792
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29785
29793
  /**
@@ -29954,6 +29962,11 @@ declare var SVGStringList: {
29954
29962
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29955
29963
  */
29956
29964
  interface SVGStyleElement extends SVGElement, LinkStyle {
29965
+ /**
29966
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29967
+ *
29968
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29969
+ */
29957
29970
  disabled: boolean;
29958
29971
  /**
29959
29972
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -30610,7 +30623,7 @@ interface ScreenOrientation extends EventTarget {
30610
30623
  */
30611
30624
  lock(orientation: OrientationLockType): Promise<void>;
30612
30625
  /**
30613
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30626
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30614
30627
  *
30615
30628
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30616
30629
  */
@@ -31076,12 +31089,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31076
31089
  readonly navigationPreload: NavigationPreloadManager;
31077
31090
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31078
31091
  onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
31079
- /**
31080
- * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
31081
- *
31082
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
31083
- */
31084
- readonly pushManager: PushManager;
31085
31092
  /**
31086
31093
  * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
31087
31094
  *
@@ -31277,10 +31284,15 @@ interface SourceBuffer extends EventTarget {
31277
31284
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31278
31285
  */
31279
31286
  mode: AppendMode;
31287
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31280
31288
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31289
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31281
31290
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31291
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31282
31292
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31293
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31283
31294
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31295
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31284
31296
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31285
31297
  /**
31286
31298
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38329,6 +38341,37 @@ declare namespace WebAssembly {
38329
38341
  (message?: string): CompileError;
38330
38342
  };
38331
38343
 
38344
+ /**
38345
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38346
+ *
38347
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38348
+ */
38349
+ interface Exception {
38350
+ /**
38351
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38352
+ *
38353
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38354
+ */
38355
+ readonly stack: string | undefined;
38356
+ /**
38357
+ * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
38358
+ *
38359
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38360
+ */
38361
+ getArg(index: number): any;
38362
+ /**
38363
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38364
+ *
38365
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38366
+ */
38367
+ is(exceptionTag: Tag): boolean;
38368
+ }
38369
+
38370
+ var Exception: {
38371
+ prototype: Exception;
38372
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38373
+ };
38374
+
38332
38375
  /**
38333
38376
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38334
38377
  *
@@ -38389,7 +38432,7 @@ declare namespace WebAssembly {
38389
38432
  *
38390
38433
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38391
38434
  */
38392
- grow(delta: number): number;
38435
+ grow(delta: AddressValue): AddressValue;
38393
38436
  }
38394
38437
 
38395
38438
  var Memory: {
@@ -38407,7 +38450,7 @@ declare namespace WebAssembly {
38407
38450
 
38408
38451
  var Module: {
38409
38452
  prototype: Module;
38410
- new(bytes: BufferSource): Module;
38453
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38411
38454
  /**
38412
38455
  * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
38413
38456
  *
@@ -38448,25 +38491,25 @@ declare namespace WebAssembly {
38448
38491
  *
38449
38492
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38450
38493
  */
38451
- readonly length: number;
38494
+ readonly length: AddressValue;
38452
38495
  /**
38453
38496
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38454
38497
  *
38455
38498
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38456
38499
  */
38457
- get(index: number): any;
38500
+ get(index: AddressValue): any;
38458
38501
  /**
38459
38502
  * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value.
38460
38503
  *
38461
38504
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38462
38505
  */
38463
- grow(delta: number, value?: any): number;
38506
+ grow(delta: AddressValue, value?: any): AddressValue;
38464
38507
  /**
38465
38508
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38466
38509
  *
38467
38510
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38468
38511
  */
38469
- set(index: number, value?: any): void;
38512
+ set(index: AddressValue, value?: any): void;
38470
38513
  }
38471
38514
 
38472
38515
  var Table: {
@@ -38474,14 +38517,32 @@ declare namespace WebAssembly {
38474
38517
  new(descriptor: TableDescriptor, value?: any): Table;
38475
38518
  };
38476
38519
 
38520
+ /**
38521
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38522
+ *
38523
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38524
+ */
38525
+ interface Tag {
38526
+ }
38527
+
38528
+ var Tag: {
38529
+ prototype: Tag;
38530
+ new(type: TagType): Tag;
38531
+ };
38532
+
38533
+ interface ExceptionOptions {
38534
+ traceStack?: boolean;
38535
+ }
38536
+
38477
38537
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38478
38538
  mutable?: boolean;
38479
38539
  value: T;
38480
38540
  }
38481
38541
 
38482
38542
  interface MemoryDescriptor {
38483
- initial: number;
38484
- maximum?: number;
38543
+ address?: AddressType;
38544
+ initial: AddressValue;
38545
+ maximum?: AddressValue;
38485
38546
  shared?: boolean;
38486
38547
  }
38487
38548
 
@@ -38497,9 +38558,14 @@ declare namespace WebAssembly {
38497
38558
  }
38498
38559
 
38499
38560
  interface TableDescriptor {
38561
+ address?: AddressType;
38500
38562
  element: TableKind;
38501
- initial: number;
38502
- maximum?: number;
38563
+ initial: AddressValue;
38564
+ maximum?: AddressValue;
38565
+ }
38566
+
38567
+ interface TagType {
38568
+ parameters: ValueType[];
38503
38569
  }
38504
38570
 
38505
38571
  interface ValueTypeMap {
@@ -38512,30 +38578,38 @@ declare namespace WebAssembly {
38512
38578
  v128: never;
38513
38579
  }
38514
38580
 
38581
+ interface WebAssemblyCompileOptions {
38582
+ builtins?: string[];
38583
+ importedStringConstants?: string | null;
38584
+ }
38585
+
38515
38586
  interface WebAssemblyInstantiatedSource {
38516
38587
  instance: Instance;
38517
38588
  module: Module;
38518
38589
  }
38519
38590
 
38520
- type ImportExportKind = "function" | "global" | "memory" | "table";
38591
+ type AddressType = "i32" | "i64";
38592
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38521
38593
  type TableKind = "anyfunc" | "externref";
38594
+ type AddressValue = number;
38522
38595
  type ExportValue = Function | Global | Memory | Table;
38523
38596
  type Exports = Record<string, ExportValue>;
38524
38597
  type ImportValue = ExportValue | number;
38525
38598
  type Imports = Record<string, ModuleImports>;
38526
38599
  type ModuleImports = Record<string, ImportValue>;
38527
38600
  type ValueType = keyof ValueTypeMap;
38601
+ var JSTag: Tag;
38528
38602
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38529
- function compile(bytes: BufferSource): Promise<Module>;
38603
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38530
38604
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38531
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38605
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38532
38606
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38533
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38607
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38534
38608
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38535
38609
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38536
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38610
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38537
38611
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38538
- function validate(bytes: BufferSource): boolean;
38612
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38539
38613
  }
38540
38614
 
38541
38615
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -40052,7 +40126,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40052
40126
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40053
40127
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40054
40128
  type MediaStreamTrackState = "ended" | "live";
40055
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40129
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40056
40130
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40057
40131
  type NotificationDirection = "auto" | "ltr" | "rtl";
40058
40132
  type NotificationPermission = "default" | "denied" | "granted";
package/ts5.6/index.d.ts CHANGED
@@ -2309,6 +2309,7 @@ interface TextEncoderEncodeIntoResult {
2309
2309
  interface ToggleEventInit extends EventInit {
2310
2310
  newState?: string;
2311
2311
  oldState?: string;
2312
+ source?: Element | null;
2312
2313
  }
2313
2314
 
2314
2315
  interface TouchEventInit extends EventModifierInit {
@@ -3277,7 +3278,11 @@ interface AnimationTimeline {
3277
3278
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3278
3279
  */
3279
3280
  readonly currentTime: CSSNumberish | null;
3280
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3281
+ /**
3282
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3283
+ *
3284
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3285
+ */
3281
3286
  readonly duration: CSSNumberish | null;
3282
3287
  }
3283
3288
 
@@ -14137,7 +14142,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14137
14142
  */
14138
14143
  innerText: string;
14139
14144
  /**
14140
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14145
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14141
14146
  *
14142
14147
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14143
14148
  */
@@ -15486,7 +15491,7 @@ interface HTMLLabelElement extends HTMLElement {
15486
15491
  */
15487
15492
  readonly control: HTMLElement | null;
15488
15493
  /**
15489
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15494
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15490
15495
  *
15491
15496
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15492
15497
  */
@@ -16797,7 +16802,7 @@ interface HTMLScriptElement extends HTMLElement {
16797
16802
  */
16798
16803
  src: string;
16799
16804
  /**
16800
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16805
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16801
16806
  *
16802
16807
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16803
16808
  */
@@ -26762,6 +26767,7 @@ declare var Response: {
26762
26767
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26763
26768
  */
26764
26769
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26770
+ download: string;
26765
26771
  /**
26766
26772
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26767
26773
  *
@@ -29142,6 +29148,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29142
29148
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29143
29149
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29144
29150
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29151
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29145
29152
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29146
29153
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29147
29154
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29157,6 +29164,7 @@ declare var SVGMarkerElement: {
29157
29164
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29158
29165
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29159
29166
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29167
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29160
29168
  };
29161
29169
 
29162
29170
  /**
@@ -29801,7 +29809,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29801
29809
  *
29802
29810
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29803
29811
  */
29804
- getElementById(elementId: string): Element;
29812
+ getElementById(elementId: string): Element | null;
29805
29813
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29806
29814
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29807
29815
  /**
@@ -29976,6 +29984,11 @@ declare var SVGStringList: {
29976
29984
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29977
29985
  */
29978
29986
  interface SVGStyleElement extends SVGElement, LinkStyle {
29987
+ /**
29988
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29989
+ *
29990
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29991
+ */
29979
29992
  disabled: boolean;
29980
29993
  /**
29981
29994
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -30632,7 +30645,7 @@ interface ScreenOrientation extends EventTarget {
30632
30645
  */
30633
30646
  lock(orientation: OrientationLockType): Promise<void>;
30634
30647
  /**
30635
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30648
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30636
30649
  *
30637
30650
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30638
30651
  */
@@ -31098,12 +31111,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31098
31111
  readonly navigationPreload: NavigationPreloadManager;
31099
31112
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31100
31113
  onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
31101
- /**
31102
- * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
31103
- *
31104
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
31105
- */
31106
- readonly pushManager: PushManager;
31107
31114
  /**
31108
31115
  * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
31109
31116
  *
@@ -31299,10 +31306,15 @@ interface SourceBuffer extends EventTarget {
31299
31306
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31300
31307
  */
31301
31308
  mode: AppendMode;
31309
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31302
31310
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31311
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31303
31312
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31313
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31304
31314
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31315
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31305
31316
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31317
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31306
31318
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31307
31319
  /**
31308
31320
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38352,6 +38364,37 @@ declare namespace WebAssembly {
38352
38364
  (message?: string): CompileError;
38353
38365
  };
38354
38366
 
38367
+ /**
38368
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38369
+ *
38370
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38371
+ */
38372
+ interface Exception {
38373
+ /**
38374
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38375
+ *
38376
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38377
+ */
38378
+ readonly stack: string | undefined;
38379
+ /**
38380
+ * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
38381
+ *
38382
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38383
+ */
38384
+ getArg(index: number): any;
38385
+ /**
38386
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38387
+ *
38388
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38389
+ */
38390
+ is(exceptionTag: Tag): boolean;
38391
+ }
38392
+
38393
+ var Exception: {
38394
+ prototype: Exception;
38395
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38396
+ };
38397
+
38355
38398
  /**
38356
38399
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38357
38400
  *
@@ -38412,7 +38455,7 @@ declare namespace WebAssembly {
38412
38455
  *
38413
38456
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38414
38457
  */
38415
- grow(delta: number): number;
38458
+ grow(delta: AddressValue): AddressValue;
38416
38459
  }
38417
38460
 
38418
38461
  var Memory: {
@@ -38430,7 +38473,7 @@ declare namespace WebAssembly {
38430
38473
 
38431
38474
  var Module: {
38432
38475
  prototype: Module;
38433
- new(bytes: BufferSource): Module;
38476
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38434
38477
  /**
38435
38478
  * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
38436
38479
  *
@@ -38471,25 +38514,25 @@ declare namespace WebAssembly {
38471
38514
  *
38472
38515
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38473
38516
  */
38474
- readonly length: number;
38517
+ readonly length: AddressValue;
38475
38518
  /**
38476
38519
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38477
38520
  *
38478
38521
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38479
38522
  */
38480
- get(index: number): any;
38523
+ get(index: AddressValue): any;
38481
38524
  /**
38482
38525
  * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value.
38483
38526
  *
38484
38527
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38485
38528
  */
38486
- grow(delta: number, value?: any): number;
38529
+ grow(delta: AddressValue, value?: any): AddressValue;
38487
38530
  /**
38488
38531
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38489
38532
  *
38490
38533
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38491
38534
  */
38492
- set(index: number, value?: any): void;
38535
+ set(index: AddressValue, value?: any): void;
38493
38536
  }
38494
38537
 
38495
38538
  var Table: {
@@ -38497,14 +38540,32 @@ declare namespace WebAssembly {
38497
38540
  new(descriptor: TableDescriptor, value?: any): Table;
38498
38541
  };
38499
38542
 
38543
+ /**
38544
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38545
+ *
38546
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38547
+ */
38548
+ interface Tag {
38549
+ }
38550
+
38551
+ var Tag: {
38552
+ prototype: Tag;
38553
+ new(type: TagType): Tag;
38554
+ };
38555
+
38556
+ interface ExceptionOptions {
38557
+ traceStack?: boolean;
38558
+ }
38559
+
38500
38560
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38501
38561
  mutable?: boolean;
38502
38562
  value: T;
38503
38563
  }
38504
38564
 
38505
38565
  interface MemoryDescriptor {
38506
- initial: number;
38507
- maximum?: number;
38566
+ address?: AddressType;
38567
+ initial: AddressValue;
38568
+ maximum?: AddressValue;
38508
38569
  shared?: boolean;
38509
38570
  }
38510
38571
 
@@ -38520,9 +38581,14 @@ declare namespace WebAssembly {
38520
38581
  }
38521
38582
 
38522
38583
  interface TableDescriptor {
38584
+ address?: AddressType;
38523
38585
  element: TableKind;
38524
- initial: number;
38525
- maximum?: number;
38586
+ initial: AddressValue;
38587
+ maximum?: AddressValue;
38588
+ }
38589
+
38590
+ interface TagType {
38591
+ parameters: ValueType[];
38526
38592
  }
38527
38593
 
38528
38594
  interface ValueTypeMap {
@@ -38535,30 +38601,38 @@ declare namespace WebAssembly {
38535
38601
  v128: never;
38536
38602
  }
38537
38603
 
38604
+ interface WebAssemblyCompileOptions {
38605
+ builtins?: string[];
38606
+ importedStringConstants?: string | null;
38607
+ }
38608
+
38538
38609
  interface WebAssemblyInstantiatedSource {
38539
38610
  instance: Instance;
38540
38611
  module: Module;
38541
38612
  }
38542
38613
 
38543
- type ImportExportKind = "function" | "global" | "memory" | "table";
38614
+ type AddressType = "i32" | "i64";
38615
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38544
38616
  type TableKind = "anyfunc" | "externref";
38617
+ type AddressValue = number;
38545
38618
  type ExportValue = Function | Global | Memory | Table;
38546
38619
  type Exports = Record<string, ExportValue>;
38547
38620
  type ImportValue = ExportValue | number;
38548
38621
  type Imports = Record<string, ModuleImports>;
38549
38622
  type ModuleImports = Record<string, ImportValue>;
38550
38623
  type ValueType = keyof ValueTypeMap;
38624
+ var JSTag: Tag;
38551
38625
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38552
- function compile(bytes: BufferSource): Promise<Module>;
38626
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38553
38627
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38554
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38628
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38555
38629
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38556
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38630
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38557
38631
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38558
38632
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38559
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38633
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38560
38634
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38561
- function validate(bytes: BufferSource): boolean;
38635
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38562
38636
  }
38563
38637
 
38564
38638
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -40075,7 +40149,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40075
40149
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40076
40150
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40077
40151
  type MediaStreamTrackState = "ended" | "live";
40078
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40152
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40079
40153
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40080
40154
  type NotificationDirection = "auto" | "ltr" | "rtl";
40081
40155
  type NotificationPermission = "default" | "denied" | "granted";
package/ts5.9/index.d.ts CHANGED
@@ -2309,6 +2309,7 @@ interface TextEncoderEncodeIntoResult {
2309
2309
  interface ToggleEventInit extends EventInit {
2310
2310
  newState?: string;
2311
2311
  oldState?: string;
2312
+ source?: Element | null;
2312
2313
  }
2313
2314
 
2314
2315
  interface TouchEventInit extends EventModifierInit {
@@ -3277,7 +3278,11 @@ interface AnimationTimeline {
3277
3278
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime)
3278
3279
  */
3279
3280
  readonly currentTime: CSSNumberish | null;
3280
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration) */
3281
+ /**
3282
+ * The **`duration`** read-only property of the Web Animations API's AnimationTimeline interface returns the maximum value for this timeline or `null`.
3283
+ *
3284
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/duration)
3285
+ */
3281
3286
  readonly duration: CSSNumberish | null;
3282
3287
  }
3283
3288
 
@@ -14137,7 +14142,7 @@ interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEdit
14137
14142
  */
14138
14143
  innerText: string;
14139
14144
  /**
14140
- * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a MISSING: RFC(5646, 'BCP 47 language identifier tag')].
14145
+ * The **`lang`** property of the HTMLElement interface indicates the base language of an element's attribute values and text content, in the form of a BCP 47 language tag.
14141
14146
  *
14142
14147
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang)
14143
14148
  */
@@ -15486,7 +15491,7 @@ interface HTMLLabelElement extends HTMLElement {
15486
15491
  */
15487
15492
  readonly control: HTMLElement | null;
15488
15493
  /**
15489
- * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a control owned by a form.
15494
+ * The **`form`** read-only property of the HTMLLabelElement interface returns an HTMLFormElement object that owns the HTMLLabelElement.control associated with this label, or `null` if this label is not associated with a labelable form-associated element (button, input, output, select, textarea, or form-associated custom elements) that is owned by a form.
15490
15495
  *
15491
15496
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
15492
15497
  */
@@ -16797,7 +16802,7 @@ interface HTMLScriptElement extends HTMLElement {
16797
16802
  */
16798
16803
  src: string;
16799
16804
  /**
16800
- * The **`text`** property of the HTMLScriptElement interface is a string that reflects the text content inside the script element.
16805
+ * The **`text`** property of the HTMLScriptElement interface represents the inline text content of the script element.
16801
16806
  *
16802
16807
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/text)
16803
16808
  */
@@ -26762,6 +26767,7 @@ declare var Response: {
26762
26767
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26763
26768
  */
26764
26769
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26770
+ download: string;
26765
26771
  /**
26766
26772
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26767
26773
  *
@@ -29142,6 +29148,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29142
29148
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29143
29149
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29144
29150
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29151
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29145
29152
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29146
29153
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29147
29154
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29157,6 +29164,7 @@ declare var SVGMarkerElement: {
29157
29164
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29158
29165
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29159
29166
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29167
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29160
29168
  };
29161
29169
 
29162
29170
  /**
@@ -29801,7 +29809,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29801
29809
  *
29802
29810
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29803
29811
  */
29804
- getElementById(elementId: string): Element;
29812
+ getElementById(elementId: string): Element | null;
29805
29813
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29806
29814
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29807
29815
  /**
@@ -29976,6 +29984,11 @@ declare var SVGStringList: {
29976
29984
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29977
29985
  */
29978
29986
  interface SVGStyleElement extends SVGElement, LinkStyle {
29987
+ /**
29988
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29989
+ *
29990
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29991
+ */
29979
29992
  disabled: boolean;
29980
29993
  /**
29981
29994
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -30632,7 +30645,7 @@ interface ScreenOrientation extends EventTarget {
30632
30645
  */
30633
30646
  lock(orientation: OrientationLockType): Promise<void>;
30634
30647
  /**
30635
- * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
30648
+ * The **`unlock()`** method of the ScreenOrientation interface unlocks the orientation of the containing document, effectively locking it to the default screen orientation.
30636
30649
  *
30637
30650
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock)
30638
30651
  */
@@ -31098,12 +31111,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31098
31111
  readonly navigationPreload: NavigationPreloadManager;
31099
31112
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31100
31113
  onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
31101
- /**
31102
- * The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
31103
- *
31104
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
31105
- */
31106
- readonly pushManager: PushManager;
31107
31114
  /**
31108
31115
  * The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
31109
31116
  *
@@ -31299,10 +31306,15 @@ interface SourceBuffer extends EventTarget {
31299
31306
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31300
31307
  */
31301
31308
  mode: AppendMode;
31309
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31302
31310
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31311
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31303
31312
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31313
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31304
31314
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31315
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31305
31316
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31317
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31306
31318
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31307
31319
  /**
31308
31320
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38352,6 +38364,37 @@ declare namespace WebAssembly {
38352
38364
  (message?: string): CompileError;
38353
38365
  };
38354
38366
 
38367
+ /**
38368
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38369
+ *
38370
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38371
+ */
38372
+ interface Exception {
38373
+ /**
38374
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38375
+ *
38376
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38377
+ */
38378
+ readonly stack: string | undefined;
38379
+ /**
38380
+ * The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
38381
+ *
38382
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38383
+ */
38384
+ getArg(index: number): any;
38385
+ /**
38386
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38387
+ *
38388
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38389
+ */
38390
+ is(exceptionTag: Tag): boolean;
38391
+ }
38392
+
38393
+ var Exception: {
38394
+ prototype: Exception;
38395
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38396
+ };
38397
+
38355
38398
  /**
38356
38399
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38357
38400
  *
@@ -38412,7 +38455,7 @@ declare namespace WebAssembly {
38412
38455
  *
38413
38456
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38414
38457
  */
38415
- grow(delta: number): number;
38458
+ grow(delta: AddressValue): AddressValue;
38416
38459
  }
38417
38460
 
38418
38461
  var Memory: {
@@ -38430,7 +38473,7 @@ declare namespace WebAssembly {
38430
38473
 
38431
38474
  var Module: {
38432
38475
  prototype: Module;
38433
- new(bytes: BufferSource): Module;
38476
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38434
38477
  /**
38435
38478
  * The **`WebAssembly.Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
38436
38479
  *
@@ -38471,25 +38514,25 @@ declare namespace WebAssembly {
38471
38514
  *
38472
38515
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38473
38516
  */
38474
- readonly length: number;
38517
+ readonly length: AddressValue;
38475
38518
  /**
38476
38519
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38477
38520
  *
38478
38521
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38479
38522
  */
38480
- get(index: number): any;
38523
+ get(index: AddressValue): any;
38481
38524
  /**
38482
38525
  * The **`grow()`** prototype method of the `WebAssembly.Table` object increases the size of the `Table` instance by a specified number of elements, filled with the provided value.
38483
38526
  *
38484
38527
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38485
38528
  */
38486
- grow(delta: number, value?: any): number;
38529
+ grow(delta: AddressValue, value?: any): AddressValue;
38487
38530
  /**
38488
38531
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38489
38532
  *
38490
38533
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38491
38534
  */
38492
- set(index: number, value?: any): void;
38535
+ set(index: AddressValue, value?: any): void;
38493
38536
  }
38494
38537
 
38495
38538
  var Table: {
@@ -38497,14 +38540,32 @@ declare namespace WebAssembly {
38497
38540
  new(descriptor: TableDescriptor, value?: any): Table;
38498
38541
  };
38499
38542
 
38543
+ /**
38544
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38545
+ *
38546
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38547
+ */
38548
+ interface Tag {
38549
+ }
38550
+
38551
+ var Tag: {
38552
+ prototype: Tag;
38553
+ new(type: TagType): Tag;
38554
+ };
38555
+
38556
+ interface ExceptionOptions {
38557
+ traceStack?: boolean;
38558
+ }
38559
+
38500
38560
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38501
38561
  mutable?: boolean;
38502
38562
  value: T;
38503
38563
  }
38504
38564
 
38505
38565
  interface MemoryDescriptor {
38506
- initial: number;
38507
- maximum?: number;
38566
+ address?: AddressType;
38567
+ initial: AddressValue;
38568
+ maximum?: AddressValue;
38508
38569
  shared?: boolean;
38509
38570
  }
38510
38571
 
@@ -38520,9 +38581,14 @@ declare namespace WebAssembly {
38520
38581
  }
38521
38582
 
38522
38583
  interface TableDescriptor {
38584
+ address?: AddressType;
38523
38585
  element: TableKind;
38524
- initial: number;
38525
- maximum?: number;
38586
+ initial: AddressValue;
38587
+ maximum?: AddressValue;
38588
+ }
38589
+
38590
+ interface TagType {
38591
+ parameters: ValueType[];
38526
38592
  }
38527
38593
 
38528
38594
  interface ValueTypeMap {
@@ -38535,30 +38601,38 @@ declare namespace WebAssembly {
38535
38601
  v128: never;
38536
38602
  }
38537
38603
 
38604
+ interface WebAssemblyCompileOptions {
38605
+ builtins?: string[];
38606
+ importedStringConstants?: string | null;
38607
+ }
38608
+
38538
38609
  interface WebAssemblyInstantiatedSource {
38539
38610
  instance: Instance;
38540
38611
  module: Module;
38541
38612
  }
38542
38613
 
38543
- type ImportExportKind = "function" | "global" | "memory" | "table";
38614
+ type AddressType = "i32" | "i64";
38615
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38544
38616
  type TableKind = "anyfunc" | "externref";
38617
+ type AddressValue = number;
38545
38618
  type ExportValue = Function | Global | Memory | Table;
38546
38619
  type Exports = Record<string, ExportValue>;
38547
38620
  type ImportValue = ExportValue | number;
38548
38621
  type Imports = Record<string, ModuleImports>;
38549
38622
  type ModuleImports = Record<string, ImportValue>;
38550
38623
  type ValueType = keyof ValueTypeMap;
38624
+ var JSTag: Tag;
38551
38625
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38552
- function compile(bytes: BufferSource): Promise<Module>;
38626
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38553
38627
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38554
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38628
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38555
38629
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38556
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38630
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38557
38631
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38558
38632
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38559
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38633
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38560
38634
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38561
- function validate(bytes: BufferSource): boolean;
38635
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38562
38636
  }
38563
38637
 
38564
38638
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
@@ -40075,7 +40149,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
40075
40149
  type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
40076
40150
  type MediaSessionPlaybackState = "none" | "paused" | "playing";
40077
40151
  type MediaStreamTrackState = "ended" | "live";
40078
- type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
40152
+ type NavigationTimingType = "back_forward" | "navigate" | "reload";
40079
40153
  type NavigationType = "push" | "reload" | "replace" | "traverse";
40080
40154
  type NotificationDirection = "auto" | "ltr" | "rtl";
40081
40155
  type NotificationPermission = "default" | "denied" | "granted";