@types/web 0.0.274 → 0.0.275

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.275 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.275.
package/index.d.ts CHANGED
@@ -26765,6 +26765,7 @@ declare var Response: {
26765
26765
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26766
26766
  */
26767
26767
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26768
+ download: string;
26768
26769
  /**
26769
26770
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26770
26771
  *
@@ -29145,6 +29146,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29145
29146
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29146
29147
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29147
29148
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29149
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29148
29150
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29149
29151
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29150
29152
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29160,6 +29162,7 @@ declare var SVGMarkerElement: {
29160
29162
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29161
29163
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29162
29164
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29165
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29163
29166
  };
29164
29167
 
29165
29168
  /**
@@ -29804,7 +29807,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29804
29807
  *
29805
29808
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29806
29809
  */
29807
- getElementById(elementId: string): Element;
29810
+ getElementById(elementId: string): Element | null;
29808
29811
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29809
29812
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29810
29813
  /**
@@ -29979,6 +29982,11 @@ declare var SVGStringList: {
29979
29982
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29980
29983
  */
29981
29984
  interface SVGStyleElement extends SVGElement, LinkStyle {
29985
+ /**
29986
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29987
+ *
29988
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29989
+ */
29982
29990
  disabled: boolean;
29983
29991
  /**
29984
29992
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -31101,12 +31109,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31101
31109
  readonly navigationPreload: NavigationPreloadManager;
31102
31110
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31103
31111
  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
31112
  /**
31111
31113
  * 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
31114
  *
@@ -31302,10 +31304,15 @@ interface SourceBuffer extends EventTarget {
31302
31304
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31303
31305
  */
31304
31306
  mode: AppendMode;
31307
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31305
31308
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31309
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31306
31310
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31311
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31307
31312
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31313
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31308
31314
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31315
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31309
31316
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31310
31317
  /**
31311
31318
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38355,6 +38362,37 @@ declare namespace WebAssembly {
38355
38362
  (message?: string): CompileError;
38356
38363
  };
38357
38364
 
38365
+ /**
38366
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38367
+ *
38368
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38369
+ */
38370
+ interface Exception {
38371
+ /**
38372
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38373
+ *
38374
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38375
+ */
38376
+ readonly stack: string | undefined;
38377
+ /**
38378
+ * 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.
38379
+ *
38380
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38381
+ */
38382
+ getArg(index: number): any;
38383
+ /**
38384
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38385
+ *
38386
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38387
+ */
38388
+ is(exceptionTag: Tag): boolean;
38389
+ }
38390
+
38391
+ var Exception: {
38392
+ prototype: Exception;
38393
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38394
+ };
38395
+
38358
38396
  /**
38359
38397
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38360
38398
  *
@@ -38415,7 +38453,7 @@ declare namespace WebAssembly {
38415
38453
  *
38416
38454
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38417
38455
  */
38418
- grow(delta: number): number;
38456
+ grow(delta: AddressValue): AddressValue;
38419
38457
  }
38420
38458
 
38421
38459
  var Memory: {
@@ -38433,7 +38471,7 @@ declare namespace WebAssembly {
38433
38471
 
38434
38472
  var Module: {
38435
38473
  prototype: Module;
38436
- new(bytes: BufferSource): Module;
38474
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38437
38475
  /**
38438
38476
  * 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
38477
  *
@@ -38474,25 +38512,25 @@ declare namespace WebAssembly {
38474
38512
  *
38475
38513
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38476
38514
  */
38477
- readonly length: number;
38515
+ readonly length: AddressValue;
38478
38516
  /**
38479
38517
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38480
38518
  *
38481
38519
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38482
38520
  */
38483
- get(index: number): any;
38521
+ get(index: AddressValue): any;
38484
38522
  /**
38485
38523
  * 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
38524
  *
38487
38525
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38488
38526
  */
38489
- grow(delta: number, value?: any): number;
38527
+ grow(delta: AddressValue, value?: any): AddressValue;
38490
38528
  /**
38491
38529
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38492
38530
  *
38493
38531
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38494
38532
  */
38495
- set(index: number, value?: any): void;
38533
+ set(index: AddressValue, value?: any): void;
38496
38534
  }
38497
38535
 
38498
38536
  var Table: {
@@ -38500,14 +38538,32 @@ declare namespace WebAssembly {
38500
38538
  new(descriptor: TableDescriptor, value?: any): Table;
38501
38539
  };
38502
38540
 
38541
+ /**
38542
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38543
+ *
38544
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38545
+ */
38546
+ interface Tag {
38547
+ }
38548
+
38549
+ var Tag: {
38550
+ prototype: Tag;
38551
+ new(type: TagType): Tag;
38552
+ };
38553
+
38554
+ interface ExceptionOptions {
38555
+ traceStack?: boolean;
38556
+ }
38557
+
38503
38558
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38504
38559
  mutable?: boolean;
38505
38560
  value: T;
38506
38561
  }
38507
38562
 
38508
38563
  interface MemoryDescriptor {
38509
- initial: number;
38510
- maximum?: number;
38564
+ address?: AddressType;
38565
+ initial: AddressValue;
38566
+ maximum?: AddressValue;
38511
38567
  shared?: boolean;
38512
38568
  }
38513
38569
 
@@ -38523,9 +38579,14 @@ declare namespace WebAssembly {
38523
38579
  }
38524
38580
 
38525
38581
  interface TableDescriptor {
38582
+ address?: AddressType;
38526
38583
  element: TableKind;
38527
- initial: number;
38528
- maximum?: number;
38584
+ initial: AddressValue;
38585
+ maximum?: AddressValue;
38586
+ }
38587
+
38588
+ interface TagType {
38589
+ parameters: ValueType[];
38529
38590
  }
38530
38591
 
38531
38592
  interface ValueTypeMap {
@@ -38538,30 +38599,38 @@ declare namespace WebAssembly {
38538
38599
  v128: never;
38539
38600
  }
38540
38601
 
38602
+ interface WebAssemblyCompileOptions {
38603
+ builtins?: string[];
38604
+ importedStringConstants?: string | null;
38605
+ }
38606
+
38541
38607
  interface WebAssemblyInstantiatedSource {
38542
38608
  instance: Instance;
38543
38609
  module: Module;
38544
38610
  }
38545
38611
 
38546
- type ImportExportKind = "function" | "global" | "memory" | "table";
38612
+ type AddressType = "i32" | "i64";
38613
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38547
38614
  type TableKind = "anyfunc" | "externref";
38615
+ type AddressValue = number;
38548
38616
  type ExportValue = Function | Global | Memory | Table;
38549
38617
  type Exports = Record<string, ExportValue>;
38550
38618
  type ImportValue = ExportValue | number;
38551
38619
  type Imports = Record<string, ModuleImports>;
38552
38620
  type ModuleImports = Record<string, ImportValue>;
38553
38621
  type ValueType = keyof ValueTypeMap;
38622
+ var JSTag: Tag;
38554
38623
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38555
- function compile(bytes: BufferSource): Promise<Module>;
38624
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38556
38625
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38557
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38626
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38558
38627
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38559
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38628
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38560
38629
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38561
38630
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38562
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38631
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38563
38632
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38564
- function validate(bytes: BufferSource): boolean;
38633
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38565
38634
  }
38566
38635
 
38567
38636
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.274",
3
+ "version": "0.0.275",
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
@@ -26741,6 +26741,7 @@ declare var Response: {
26741
26741
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26742
26742
  */
26743
26743
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26744
+ download: string;
26744
26745
  /**
26745
26746
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26746
26747
  *
@@ -29120,6 +29121,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29120
29121
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29121
29122
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29122
29123
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29124
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29123
29125
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29124
29126
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29125
29127
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29135,6 +29137,7 @@ declare var SVGMarkerElement: {
29135
29137
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29136
29138
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29137
29139
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29140
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29138
29141
  };
29139
29142
 
29140
29143
  /**
@@ -29779,7 +29782,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29779
29782
  *
29780
29783
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29781
29784
  */
29782
- getElementById(elementId: string): Element;
29785
+ getElementById(elementId: string): Element | null;
29783
29786
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29784
29787
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29785
29788
  /**
@@ -29954,6 +29957,11 @@ declare var SVGStringList: {
29954
29957
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29955
29958
  */
29956
29959
  interface SVGStyleElement extends SVGElement, LinkStyle {
29960
+ /**
29961
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29962
+ *
29963
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29964
+ */
29957
29965
  disabled: boolean;
29958
29966
  /**
29959
29967
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -31076,12 +31084,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31076
31084
  readonly navigationPreload: NavigationPreloadManager;
31077
31085
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31078
31086
  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
31087
  /**
31086
31088
  * 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
31089
  *
@@ -31277,10 +31279,15 @@ interface SourceBuffer extends EventTarget {
31277
31279
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31278
31280
  */
31279
31281
  mode: AppendMode;
31282
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31280
31283
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31284
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31281
31285
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31286
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31282
31287
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31288
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31283
31289
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31290
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31284
31291
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31285
31292
  /**
31286
31293
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38329,6 +38336,37 @@ declare namespace WebAssembly {
38329
38336
  (message?: string): CompileError;
38330
38337
  };
38331
38338
 
38339
+ /**
38340
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38341
+ *
38342
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38343
+ */
38344
+ interface Exception {
38345
+ /**
38346
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38347
+ *
38348
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38349
+ */
38350
+ readonly stack: string | undefined;
38351
+ /**
38352
+ * 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.
38353
+ *
38354
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38355
+ */
38356
+ getArg(index: number): any;
38357
+ /**
38358
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38359
+ *
38360
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38361
+ */
38362
+ is(exceptionTag: Tag): boolean;
38363
+ }
38364
+
38365
+ var Exception: {
38366
+ prototype: Exception;
38367
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38368
+ };
38369
+
38332
38370
  /**
38333
38371
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38334
38372
  *
@@ -38389,7 +38427,7 @@ declare namespace WebAssembly {
38389
38427
  *
38390
38428
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38391
38429
  */
38392
- grow(delta: number): number;
38430
+ grow(delta: AddressValue): AddressValue;
38393
38431
  }
38394
38432
 
38395
38433
  var Memory: {
@@ -38407,7 +38445,7 @@ declare namespace WebAssembly {
38407
38445
 
38408
38446
  var Module: {
38409
38447
  prototype: Module;
38410
- new(bytes: BufferSource): Module;
38448
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38411
38449
  /**
38412
38450
  * 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
38451
  *
@@ -38448,25 +38486,25 @@ declare namespace WebAssembly {
38448
38486
  *
38449
38487
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38450
38488
  */
38451
- readonly length: number;
38489
+ readonly length: AddressValue;
38452
38490
  /**
38453
38491
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38454
38492
  *
38455
38493
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38456
38494
  */
38457
- get(index: number): any;
38495
+ get(index: AddressValue): any;
38458
38496
  /**
38459
38497
  * 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
38498
  *
38461
38499
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38462
38500
  */
38463
- grow(delta: number, value?: any): number;
38501
+ grow(delta: AddressValue, value?: any): AddressValue;
38464
38502
  /**
38465
38503
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38466
38504
  *
38467
38505
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38468
38506
  */
38469
- set(index: number, value?: any): void;
38507
+ set(index: AddressValue, value?: any): void;
38470
38508
  }
38471
38509
 
38472
38510
  var Table: {
@@ -38474,14 +38512,32 @@ declare namespace WebAssembly {
38474
38512
  new(descriptor: TableDescriptor, value?: any): Table;
38475
38513
  };
38476
38514
 
38515
+ /**
38516
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38517
+ *
38518
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38519
+ */
38520
+ interface Tag {
38521
+ }
38522
+
38523
+ var Tag: {
38524
+ prototype: Tag;
38525
+ new(type: TagType): Tag;
38526
+ };
38527
+
38528
+ interface ExceptionOptions {
38529
+ traceStack?: boolean;
38530
+ }
38531
+
38477
38532
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38478
38533
  mutable?: boolean;
38479
38534
  value: T;
38480
38535
  }
38481
38536
 
38482
38537
  interface MemoryDescriptor {
38483
- initial: number;
38484
- maximum?: number;
38538
+ address?: AddressType;
38539
+ initial: AddressValue;
38540
+ maximum?: AddressValue;
38485
38541
  shared?: boolean;
38486
38542
  }
38487
38543
 
@@ -38497,9 +38553,14 @@ declare namespace WebAssembly {
38497
38553
  }
38498
38554
 
38499
38555
  interface TableDescriptor {
38556
+ address?: AddressType;
38500
38557
  element: TableKind;
38501
- initial: number;
38502
- maximum?: number;
38558
+ initial: AddressValue;
38559
+ maximum?: AddressValue;
38560
+ }
38561
+
38562
+ interface TagType {
38563
+ parameters: ValueType[];
38503
38564
  }
38504
38565
 
38505
38566
  interface ValueTypeMap {
@@ -38512,30 +38573,38 @@ declare namespace WebAssembly {
38512
38573
  v128: never;
38513
38574
  }
38514
38575
 
38576
+ interface WebAssemblyCompileOptions {
38577
+ builtins?: string[];
38578
+ importedStringConstants?: string | null;
38579
+ }
38580
+
38515
38581
  interface WebAssemblyInstantiatedSource {
38516
38582
  instance: Instance;
38517
38583
  module: Module;
38518
38584
  }
38519
38585
 
38520
- type ImportExportKind = "function" | "global" | "memory" | "table";
38586
+ type AddressType = "i32" | "i64";
38587
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38521
38588
  type TableKind = "anyfunc" | "externref";
38589
+ type AddressValue = number;
38522
38590
  type ExportValue = Function | Global | Memory | Table;
38523
38591
  type Exports = Record<string, ExportValue>;
38524
38592
  type ImportValue = ExportValue | number;
38525
38593
  type Imports = Record<string, ModuleImports>;
38526
38594
  type ModuleImports = Record<string, ImportValue>;
38527
38595
  type ValueType = keyof ValueTypeMap;
38596
+ var JSTag: Tag;
38528
38597
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38529
- function compile(bytes: BufferSource): Promise<Module>;
38598
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38530
38599
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38531
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38600
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38532
38601
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38533
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38602
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38534
38603
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38535
38604
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38536
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38605
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38537
38606
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38538
- function validate(bytes: BufferSource): boolean;
38607
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38539
38608
  }
38540
38609
 
38541
38610
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
package/ts5.6/index.d.ts CHANGED
@@ -26762,6 +26762,7 @@ declare var Response: {
26762
26762
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26763
26763
  */
26764
26764
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26765
+ download: string;
26765
26766
  /**
26766
26767
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26767
26768
  *
@@ -29142,6 +29143,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29142
29143
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29143
29144
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29144
29145
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29146
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29145
29147
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29146
29148
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29147
29149
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29157,6 +29159,7 @@ declare var SVGMarkerElement: {
29157
29159
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29158
29160
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29159
29161
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29162
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29160
29163
  };
29161
29164
 
29162
29165
  /**
@@ -29801,7 +29804,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29801
29804
  *
29802
29805
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29803
29806
  */
29804
- getElementById(elementId: string): Element;
29807
+ getElementById(elementId: string): Element | null;
29805
29808
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29806
29809
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29807
29810
  /**
@@ -29976,6 +29979,11 @@ declare var SVGStringList: {
29976
29979
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29977
29980
  */
29978
29981
  interface SVGStyleElement extends SVGElement, LinkStyle {
29982
+ /**
29983
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29984
+ *
29985
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29986
+ */
29979
29987
  disabled: boolean;
29980
29988
  /**
29981
29989
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -31098,12 +31106,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31098
31106
  readonly navigationPreload: NavigationPreloadManager;
31099
31107
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31100
31108
  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
31109
  /**
31108
31110
  * 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
31111
  *
@@ -31299,10 +31301,15 @@ interface SourceBuffer extends EventTarget {
31299
31301
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31300
31302
  */
31301
31303
  mode: AppendMode;
31304
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31302
31305
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31306
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31303
31307
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31308
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31304
31309
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31310
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31305
31311
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31312
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31306
31313
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31307
31314
  /**
31308
31315
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38352,6 +38359,37 @@ declare namespace WebAssembly {
38352
38359
  (message?: string): CompileError;
38353
38360
  };
38354
38361
 
38362
+ /**
38363
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38364
+ *
38365
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38366
+ */
38367
+ interface Exception {
38368
+ /**
38369
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38370
+ *
38371
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38372
+ */
38373
+ readonly stack: string | undefined;
38374
+ /**
38375
+ * 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.
38376
+ *
38377
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38378
+ */
38379
+ getArg(index: number): any;
38380
+ /**
38381
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38382
+ *
38383
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38384
+ */
38385
+ is(exceptionTag: Tag): boolean;
38386
+ }
38387
+
38388
+ var Exception: {
38389
+ prototype: Exception;
38390
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38391
+ };
38392
+
38355
38393
  /**
38356
38394
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38357
38395
  *
@@ -38412,7 +38450,7 @@ declare namespace WebAssembly {
38412
38450
  *
38413
38451
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38414
38452
  */
38415
- grow(delta: number): number;
38453
+ grow(delta: AddressValue): AddressValue;
38416
38454
  }
38417
38455
 
38418
38456
  var Memory: {
@@ -38430,7 +38468,7 @@ declare namespace WebAssembly {
38430
38468
 
38431
38469
  var Module: {
38432
38470
  prototype: Module;
38433
- new(bytes: BufferSource): Module;
38471
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38434
38472
  /**
38435
38473
  * 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
38474
  *
@@ -38471,25 +38509,25 @@ declare namespace WebAssembly {
38471
38509
  *
38472
38510
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38473
38511
  */
38474
- readonly length: number;
38512
+ readonly length: AddressValue;
38475
38513
  /**
38476
38514
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38477
38515
  *
38478
38516
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38479
38517
  */
38480
- get(index: number): any;
38518
+ get(index: AddressValue): any;
38481
38519
  /**
38482
38520
  * 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
38521
  *
38484
38522
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38485
38523
  */
38486
- grow(delta: number, value?: any): number;
38524
+ grow(delta: AddressValue, value?: any): AddressValue;
38487
38525
  /**
38488
38526
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38489
38527
  *
38490
38528
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38491
38529
  */
38492
- set(index: number, value?: any): void;
38530
+ set(index: AddressValue, value?: any): void;
38493
38531
  }
38494
38532
 
38495
38533
  var Table: {
@@ -38497,14 +38535,32 @@ declare namespace WebAssembly {
38497
38535
  new(descriptor: TableDescriptor, value?: any): Table;
38498
38536
  };
38499
38537
 
38538
+ /**
38539
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38540
+ *
38541
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38542
+ */
38543
+ interface Tag {
38544
+ }
38545
+
38546
+ var Tag: {
38547
+ prototype: Tag;
38548
+ new(type: TagType): Tag;
38549
+ };
38550
+
38551
+ interface ExceptionOptions {
38552
+ traceStack?: boolean;
38553
+ }
38554
+
38500
38555
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38501
38556
  mutable?: boolean;
38502
38557
  value: T;
38503
38558
  }
38504
38559
 
38505
38560
  interface MemoryDescriptor {
38506
- initial: number;
38507
- maximum?: number;
38561
+ address?: AddressType;
38562
+ initial: AddressValue;
38563
+ maximum?: AddressValue;
38508
38564
  shared?: boolean;
38509
38565
  }
38510
38566
 
@@ -38520,9 +38576,14 @@ declare namespace WebAssembly {
38520
38576
  }
38521
38577
 
38522
38578
  interface TableDescriptor {
38579
+ address?: AddressType;
38523
38580
  element: TableKind;
38524
- initial: number;
38525
- maximum?: number;
38581
+ initial: AddressValue;
38582
+ maximum?: AddressValue;
38583
+ }
38584
+
38585
+ interface TagType {
38586
+ parameters: ValueType[];
38526
38587
  }
38527
38588
 
38528
38589
  interface ValueTypeMap {
@@ -38535,30 +38596,38 @@ declare namespace WebAssembly {
38535
38596
  v128: never;
38536
38597
  }
38537
38598
 
38599
+ interface WebAssemblyCompileOptions {
38600
+ builtins?: string[];
38601
+ importedStringConstants?: string | null;
38602
+ }
38603
+
38538
38604
  interface WebAssemblyInstantiatedSource {
38539
38605
  instance: Instance;
38540
38606
  module: Module;
38541
38607
  }
38542
38608
 
38543
- type ImportExportKind = "function" | "global" | "memory" | "table";
38609
+ type AddressType = "i32" | "i64";
38610
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38544
38611
  type TableKind = "anyfunc" | "externref";
38612
+ type AddressValue = number;
38545
38613
  type ExportValue = Function | Global | Memory | Table;
38546
38614
  type Exports = Record<string, ExportValue>;
38547
38615
  type ImportValue = ExportValue | number;
38548
38616
  type Imports = Record<string, ModuleImports>;
38549
38617
  type ModuleImports = Record<string, ImportValue>;
38550
38618
  type ValueType = keyof ValueTypeMap;
38619
+ var JSTag: Tag;
38551
38620
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38552
- function compile(bytes: BufferSource): Promise<Module>;
38621
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38553
38622
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38554
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38623
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38555
38624
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38556
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38625
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38557
38626
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38558
38627
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38559
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38628
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38560
38629
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38561
- function validate(bytes: BufferSource): boolean;
38630
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38562
38631
  }
38563
38632
 
38564
38633
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
package/ts5.9/index.d.ts CHANGED
@@ -26762,6 +26762,7 @@ declare var Response: {
26762
26762
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26763
26763
  */
26764
26764
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26765
+ download: string;
26765
26766
  /**
26766
26767
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
26767
26768
  *
@@ -29142,6 +29143,7 @@ interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
29142
29143
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29143
29144
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29144
29145
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29146
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29145
29147
  addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
29146
29148
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
29147
29149
  removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -29157,6 +29159,7 @@ declare var SVGMarkerElement: {
29157
29159
  readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
29158
29160
  readonly SVG_MARKER_ORIENT_AUTO: 1;
29159
29161
  readonly SVG_MARKER_ORIENT_ANGLE: 2;
29162
+ readonly SVG_MARKER_ORIENT_AUTO_START_REVERSE: 3;
29160
29163
  };
29161
29164
 
29162
29165
  /**
@@ -29801,7 +29804,7 @@ interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEvent
29801
29804
  *
29802
29805
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement/getElementById)
29803
29806
  */
29804
- getElementById(elementId: string): Element;
29807
+ getElementById(elementId: string): Element | null;
29805
29808
  getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29806
29809
  getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
29807
29810
  /**
@@ -29976,6 +29979,11 @@ declare var SVGStringList: {
29976
29979
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
29977
29980
  */
29978
29981
  interface SVGStyleElement extends SVGElement, LinkStyle {
29982
+ /**
29983
+ * The **`SVGStyleElement.disabled`** property can be used to get and set whether the stylesheet is disabled (`true`) or not (`false`).
29984
+ *
29985
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/disabled)
29986
+ */
29979
29987
  disabled: boolean;
29980
29988
  /**
29981
29989
  * The **`SVGStyleElement.media`** property is a media query string corresponding to the `media` attribute of the given SVG style element.
@@ -31098,12 +31106,6 @@ interface ServiceWorkerRegistration extends EventTarget {
31098
31106
  readonly navigationPreload: NavigationPreloadManager;
31099
31107
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
31100
31108
  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
31109
  /**
31108
31110
  * 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
31111
  *
@@ -31299,10 +31301,15 @@ interface SourceBuffer extends EventTarget {
31299
31301
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode)
31300
31302
  */
31301
31303
  mode: AppendMode;
31304
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
31302
31305
  onabort: ((this: SourceBuffer, ev: Event) => any) | null;
31306
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
31303
31307
  onerror: ((this: SourceBuffer, ev: Event) => any) | null;
31308
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
31304
31309
  onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
31310
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
31305
31311
  onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
31312
+ /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
31306
31313
  onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
31307
31314
  /**
31308
31315
  * The **`timestampOffset`** property of the SourceBuffer interface controls the offset applied to timestamps inside media segments that are appended to the `SourceBuffer`.
@@ -38352,6 +38359,37 @@ declare namespace WebAssembly {
38352
38359
  (message?: string): CompileError;
38353
38360
  };
38354
38361
 
38362
+ /**
38363
+ * The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
38364
+ *
38365
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
38366
+ */
38367
+ interface Exception {
38368
+ /**
38369
+ * The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
38370
+ *
38371
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
38372
+ */
38373
+ readonly stack: string | undefined;
38374
+ /**
38375
+ * 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.
38376
+ *
38377
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
38378
+ */
38379
+ getArg(index: number): any;
38380
+ /**
38381
+ * The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
38382
+ *
38383
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
38384
+ */
38385
+ is(exceptionTag: Tag): boolean;
38386
+ }
38387
+
38388
+ var Exception: {
38389
+ prototype: Exception;
38390
+ new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
38391
+ };
38392
+
38355
38393
  /**
38356
38394
  * A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38357
38395
  *
@@ -38412,7 +38450,7 @@ declare namespace WebAssembly {
38412
38450
  *
38413
38451
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38414
38452
  */
38415
- grow(delta: number): number;
38453
+ grow(delta: AddressValue): AddressValue;
38416
38454
  }
38417
38455
 
38418
38456
  var Memory: {
@@ -38430,7 +38468,7 @@ declare namespace WebAssembly {
38430
38468
 
38431
38469
  var Module: {
38432
38470
  prototype: Module;
38433
- new(bytes: BufferSource): Module;
38471
+ new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
38434
38472
  /**
38435
38473
  * 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
38474
  *
@@ -38471,25 +38509,25 @@ declare namespace WebAssembly {
38471
38509
  *
38472
38510
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38473
38511
  */
38474
- readonly length: number;
38512
+ readonly length: AddressValue;
38475
38513
  /**
38476
38514
  * The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38477
38515
  *
38478
38516
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38479
38517
  */
38480
- get(index: number): any;
38518
+ get(index: AddressValue): any;
38481
38519
  /**
38482
38520
  * 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
38521
  *
38484
38522
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38485
38523
  */
38486
- grow(delta: number, value?: any): number;
38524
+ grow(delta: AddressValue, value?: any): AddressValue;
38487
38525
  /**
38488
38526
  * The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38489
38527
  *
38490
38528
  * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38491
38529
  */
38492
- set(index: number, value?: any): void;
38530
+ set(index: AddressValue, value?: any): void;
38493
38531
  }
38494
38532
 
38495
38533
  var Table: {
@@ -38497,14 +38535,32 @@ declare namespace WebAssembly {
38497
38535
  new(descriptor: TableDescriptor, value?: any): Table;
38498
38536
  };
38499
38537
 
38538
+ /**
38539
+ * The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
38540
+ *
38541
+ * [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
38542
+ */
38543
+ interface Tag {
38544
+ }
38545
+
38546
+ var Tag: {
38547
+ prototype: Tag;
38548
+ new(type: TagType): Tag;
38549
+ };
38550
+
38551
+ interface ExceptionOptions {
38552
+ traceStack?: boolean;
38553
+ }
38554
+
38500
38555
  interface GlobalDescriptor<T extends ValueType = ValueType> {
38501
38556
  mutable?: boolean;
38502
38557
  value: T;
38503
38558
  }
38504
38559
 
38505
38560
  interface MemoryDescriptor {
38506
- initial: number;
38507
- maximum?: number;
38561
+ address?: AddressType;
38562
+ initial: AddressValue;
38563
+ maximum?: AddressValue;
38508
38564
  shared?: boolean;
38509
38565
  }
38510
38566
 
@@ -38520,9 +38576,14 @@ declare namespace WebAssembly {
38520
38576
  }
38521
38577
 
38522
38578
  interface TableDescriptor {
38579
+ address?: AddressType;
38523
38580
  element: TableKind;
38524
- initial: number;
38525
- maximum?: number;
38581
+ initial: AddressValue;
38582
+ maximum?: AddressValue;
38583
+ }
38584
+
38585
+ interface TagType {
38586
+ parameters: ValueType[];
38526
38587
  }
38527
38588
 
38528
38589
  interface ValueTypeMap {
@@ -38535,30 +38596,38 @@ declare namespace WebAssembly {
38535
38596
  v128: never;
38536
38597
  }
38537
38598
 
38599
+ interface WebAssemblyCompileOptions {
38600
+ builtins?: string[];
38601
+ importedStringConstants?: string | null;
38602
+ }
38603
+
38538
38604
  interface WebAssemblyInstantiatedSource {
38539
38605
  instance: Instance;
38540
38606
  module: Module;
38541
38607
  }
38542
38608
 
38543
- type ImportExportKind = "function" | "global" | "memory" | "table";
38609
+ type AddressType = "i32" | "i64";
38610
+ type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
38544
38611
  type TableKind = "anyfunc" | "externref";
38612
+ type AddressValue = number;
38545
38613
  type ExportValue = Function | Global | Memory | Table;
38546
38614
  type Exports = Record<string, ExportValue>;
38547
38615
  type ImportValue = ExportValue | number;
38548
38616
  type Imports = Record<string, ModuleImports>;
38549
38617
  type ModuleImports = Record<string, ImportValue>;
38550
38618
  type ValueType = keyof ValueTypeMap;
38619
+ var JSTag: Tag;
38551
38620
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
38552
- function compile(bytes: BufferSource): Promise<Module>;
38621
+ function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
38553
38622
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
38554
- function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
38623
+ function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
38555
38624
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
38556
- function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38625
+ function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38557
38626
  function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
38558
38627
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
38559
- function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
38628
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
38560
38629
  /** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
38561
- function validate(bytes: BufferSource): boolean;
38630
+ function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
38562
38631
  }
38563
38632
 
38564
38633
  /** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */