@types/audioworklet 0.0.79 → 0.0.81
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 +1 -1
- package/index.d.ts +106 -46
- package/package.json +1 -1
- package/ts5.5/index.d.ts +106 -46
- package/ts5.6/index.d.ts +106 -46
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.81 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.81.
|
package/index.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ interface AudioWorkletGlobalScope extends WorkletGlobalScope {
|
|
|
284
284
|
*/
|
|
285
285
|
readonly sampleRate: number;
|
|
286
286
|
/**
|
|
287
|
-
* The **`registerProcessor`** method of the from AudioWorkletProcessor interface under a specified _name_.
|
|
287
|
+
* The **`registerProcessor`** method of the AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified _name_.
|
|
288
288
|
*
|
|
289
289
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)
|
|
290
290
|
*/
|
|
@@ -303,7 +303,7 @@ declare var AudioWorkletGlobalScope: {
|
|
|
303
303
|
*/
|
|
304
304
|
interface AudioWorkletProcessor {
|
|
305
305
|
/**
|
|
306
|
-
* The read-only **`port`** property of the
|
|
306
|
+
* The read-only **`port`** property of the AudioWorkletProcessor interface returns the associated MessagePort.
|
|
307
307
|
*
|
|
308
308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletProcessor/port)
|
|
309
309
|
*/
|
|
@@ -416,13 +416,13 @@ interface DOMException extends Error {
|
|
|
416
416
|
*/
|
|
417
417
|
readonly code: number;
|
|
418
418
|
/**
|
|
419
|
-
* The **`message`** read-only property of the a message or description associated with the given error name.
|
|
419
|
+
* The **`message`** read-only property of the DOMException interface returns a string representing a message or description associated with the given error name.
|
|
420
420
|
*
|
|
421
421
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
|
|
422
422
|
*/
|
|
423
423
|
readonly message: string;
|
|
424
424
|
/**
|
|
425
|
-
* The **`name`** read-only property of the one of the strings associated with an error name.
|
|
425
|
+
* The **`name`** read-only property of the DOMException interface returns a string that contains one of the strings associated with an error name.
|
|
426
426
|
*
|
|
427
427
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
|
|
428
428
|
*/
|
|
@@ -568,7 +568,7 @@ interface Event {
|
|
|
568
568
|
*/
|
|
569
569
|
readonly cancelable: boolean;
|
|
570
570
|
/**
|
|
571
|
-
* The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
|
571
|
+
* The read-only **`composed`** property of the Event interface returns a boolean value which indicates whether or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
|
572
572
|
*
|
|
573
573
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
|
|
574
574
|
*/
|
|
@@ -586,13 +586,13 @@ interface Event {
|
|
|
586
586
|
*/
|
|
587
587
|
readonly defaultPrevented: boolean;
|
|
588
588
|
/**
|
|
589
|
-
* The **`eventPhase`** read-only property of the being evaluated.
|
|
589
|
+
* The **`eventPhase`** read-only property of the Event interface indicates which phase of the event flow is currently being evaluated.
|
|
590
590
|
*
|
|
591
591
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
|
|
592
592
|
*/
|
|
593
593
|
readonly eventPhase: number;
|
|
594
594
|
/**
|
|
595
|
-
* The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via
|
|
595
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is `true` when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via EventTarget.dispatchEvent().
|
|
596
596
|
*
|
|
597
597
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
598
598
|
*/
|
|
@@ -612,7 +612,7 @@ interface Event {
|
|
|
612
612
|
*/
|
|
613
613
|
readonly srcElement: EventTarget | null;
|
|
614
614
|
/**
|
|
615
|
-
* The read-only **`target`** property of the dispatched.
|
|
615
|
+
* The read-only **`target`** property of the Event interface is a reference to the object onto which the event was dispatched.
|
|
616
616
|
*
|
|
617
617
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
|
|
618
618
|
*/
|
|
@@ -649,7 +649,7 @@ interface Event {
|
|
|
649
649
|
*/
|
|
650
650
|
preventDefault(): void;
|
|
651
651
|
/**
|
|
652
|
-
* The **`stopImmediatePropagation()`** method of the
|
|
652
|
+
* The **`stopImmediatePropagation()`** method of the Event interface prevents other listeners of the same event from being called.
|
|
653
653
|
*
|
|
654
654
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
|
|
655
655
|
*/
|
|
@@ -728,31 +728,31 @@ interface GenericTransformStream {
|
|
|
728
728
|
*/
|
|
729
729
|
interface MessageEvent<T = any> extends Event {
|
|
730
730
|
/**
|
|
731
|
-
* The **`data`** read-only property of the
|
|
731
|
+
* The **`data`** read-only property of the MessageEvent interface represents the data sent by the message emitter.
|
|
732
732
|
*
|
|
733
733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
|
|
734
734
|
*/
|
|
735
735
|
readonly data: T;
|
|
736
736
|
/**
|
|
737
|
-
* The **`lastEventId`** read-only property of the unique ID for the event.
|
|
737
|
+
* The **`lastEventId`** read-only property of the MessageEvent interface is a string representing a unique ID for the event.
|
|
738
738
|
*
|
|
739
739
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
|
|
740
740
|
*/
|
|
741
741
|
readonly lastEventId: string;
|
|
742
742
|
/**
|
|
743
|
-
* The **`origin`** read-only property of the origin of the message emitter.
|
|
743
|
+
* The **`origin`** read-only property of the MessageEvent interface is a string representing the origin of the message emitter.
|
|
744
744
|
*
|
|
745
745
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
|
|
746
746
|
*/
|
|
747
747
|
readonly origin: string;
|
|
748
748
|
/**
|
|
749
|
-
* The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order.
|
|
749
|
+
* The **`ports`** read-only property of the MessageEvent interface is an array of MessagePort objects containing all MessagePort objects sent with the message, in order.
|
|
750
750
|
*
|
|
751
751
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
|
|
752
752
|
*/
|
|
753
753
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
754
754
|
/**
|
|
755
|
-
* The **`source`** read-only property of the
|
|
755
|
+
* The **`source`** read-only property of the MessageEvent interface is a `MessageEventSource` (which can be a WindowProxy, MessagePort, or ServiceWorker object) representing the message emitter.
|
|
756
756
|
*
|
|
757
757
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
|
|
758
758
|
*/
|
|
@@ -800,7 +800,7 @@ interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
|
|
|
800
800
|
*/
|
|
801
801
|
close(): void;
|
|
802
802
|
/**
|
|
803
|
-
* The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.
|
|
803
|
+
* The **`postMessage()`** method of the MessagePort interface sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
|
|
804
804
|
*
|
|
805
805
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
|
|
806
806
|
*/
|
|
@@ -830,7 +830,7 @@ declare var MessagePort: {
|
|
|
830
830
|
*/
|
|
831
831
|
interface PromiseRejectionEvent extends Event {
|
|
832
832
|
/**
|
|
833
|
-
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript rejected.
|
|
833
|
+
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript Promise which was rejected.
|
|
834
834
|
*
|
|
835
835
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
|
|
836
836
|
*/
|
|
@@ -930,7 +930,7 @@ interface ReadableStream<R = any> {
|
|
|
930
930
|
*/
|
|
931
931
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
932
932
|
/**
|
|
933
|
-
* The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
|
|
933
|
+
* The **`tee()`** method of the ReadableStream interface tees the current readable stream, returning a two-element array containing the two resulting branches as new ReadableStream instances.
|
|
934
934
|
*
|
|
935
935
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
|
|
936
936
|
*/
|
|
@@ -1007,7 +1007,7 @@ declare var ReadableStreamBYOBRequest: {
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
interface ReadableStreamDefaultController<R = any> {
|
|
1009
1009
|
/**
|
|
1010
|
-
* The **`desiredSize`** read-only property of the required to fill the stream's internal queue.
|
|
1010
|
+
* The **`desiredSize`** read-only property of the ReadableStreamDefaultController interface returns the desired size required to fill the stream's internal queue.
|
|
1011
1011
|
*
|
|
1012
1012
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
|
|
1013
1013
|
*/
|
|
@@ -1019,13 +1019,13 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
1019
1019
|
*/
|
|
1020
1020
|
close(): void;
|
|
1021
1021
|
/**
|
|
1022
|
-
* The **`enqueue()`** method of the
|
|
1022
|
+
* The **`enqueue()`** method of the ReadableStreamDefaultController interface enqueues a given chunk in the associated stream.
|
|
1023
1023
|
*
|
|
1024
1024
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
1025
1025
|
*/
|
|
1026
1026
|
enqueue(chunk?: R): void;
|
|
1027
1027
|
/**
|
|
1028
|
-
* The **`error()`** method of the with the associated stream to error.
|
|
1028
|
+
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
1029
1029
|
*
|
|
1030
1030
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
|
|
1031
1031
|
*/
|
|
@@ -1303,7 +1303,7 @@ interface URL {
|
|
|
1303
1303
|
*/
|
|
1304
1304
|
search: string;
|
|
1305
1305
|
/**
|
|
1306
|
-
* The **`searchParams`** read-only property of the access to the
|
|
1306
|
+
* The **`searchParams`** read-only property of the URL interface returns a URLSearchParams object allowing access to the GET decoded query arguments contained in the URL.
|
|
1307
1307
|
*
|
|
1308
1308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
|
|
1309
1309
|
*/
|
|
@@ -1315,7 +1315,7 @@ interface URL {
|
|
|
1315
1315
|
*/
|
|
1316
1316
|
username: string;
|
|
1317
1317
|
/**
|
|
1318
|
-
* The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as
|
|
1318
|
+
* The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as URL.toString().
|
|
1319
1319
|
*
|
|
1320
1320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
|
|
1321
1321
|
*/
|
|
@@ -1466,7 +1466,7 @@ interface WritableStreamDefaultController {
|
|
|
1466
1466
|
*/
|
|
1467
1467
|
readonly signal: AbortSignal;
|
|
1468
1468
|
/**
|
|
1469
|
-
* The **`error()`** method of the with the associated stream to error.
|
|
1469
|
+
* The **`error()`** method of the WritableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
1470
1470
|
*
|
|
1471
1471
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
|
|
1472
1472
|
*/
|
|
@@ -1485,43 +1485,43 @@ declare var WritableStreamDefaultController: {
|
|
|
1485
1485
|
*/
|
|
1486
1486
|
interface WritableStreamDefaultWriter<W = any> {
|
|
1487
1487
|
/**
|
|
1488
|
-
* The **`closed`** read-only property of the the stream errors or the writer's lock is released.
|
|
1488
|
+
* The **`closed`** read-only property of the WritableStreamDefaultWriter interface returns a Promise that fulfills if the stream becomes closed, or rejects if the stream errors or the writer's lock is released.
|
|
1489
1489
|
*
|
|
1490
1490
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
|
|
1491
1491
|
*/
|
|
1492
1492
|
readonly closed: Promise<void>;
|
|
1493
1493
|
/**
|
|
1494
|
-
* The **`desiredSize`** read-only property of the to fill the stream's internal queue.
|
|
1494
|
+
* The **`desiredSize`** read-only property of the WritableStreamDefaultWriter interface returns the desired size required to fill the stream's internal queue.
|
|
1495
1495
|
*
|
|
1496
1496
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
|
|
1497
1497
|
*/
|
|
1498
1498
|
readonly desiredSize: number | null;
|
|
1499
1499
|
/**
|
|
1500
|
-
* The **`ready`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
|
|
1500
|
+
* The **`ready`** read-only property of the WritableStreamDefaultWriter interface returns a Promise that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
|
|
1501
1501
|
*
|
|
1502
1502
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
|
|
1503
1503
|
*/
|
|
1504
1504
|
readonly ready: Promise<void>;
|
|
1505
1505
|
/**
|
|
1506
|
-
* The **`abort()`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
1506
|
+
* The **`abort()`** method of the WritableStreamDefaultWriter interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
1507
1507
|
*
|
|
1508
1508
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
|
|
1509
1509
|
*/
|
|
1510
1510
|
abort(reason?: any): Promise<void>;
|
|
1511
1511
|
/**
|
|
1512
|
-
* The **`close()`** method of the stream.
|
|
1512
|
+
* The **`close()`** method of the WritableStreamDefaultWriter interface closes the associated writable stream.
|
|
1513
1513
|
*
|
|
1514
1514
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
|
|
1515
1515
|
*/
|
|
1516
1516
|
close(): Promise<void>;
|
|
1517
1517
|
/**
|
|
1518
|
-
* The **`releaseLock()`** method of the corresponding stream.
|
|
1518
|
+
* The **`releaseLock()`** method of the WritableStreamDefaultWriter interface releases the writer's lock on the corresponding stream.
|
|
1519
1519
|
*
|
|
1520
1520
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
|
|
1521
1521
|
*/
|
|
1522
1522
|
releaseLock(): void;
|
|
1523
1523
|
/**
|
|
1524
|
-
* The **`write()`** method of the operation.
|
|
1524
|
+
* The **`write()`** method of the WritableStreamDefaultWriter interface writes a passed chunk of data to a WritableStream and its underlying sink, then returns a Promise that resolves to indicate the success or failure of the write operation.
|
|
1525
1525
|
*
|
|
1526
1526
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
|
|
1527
1527
|
*/
|
|
@@ -1543,7 +1543,11 @@ declare namespace WebAssembly {
|
|
|
1543
1543
|
(message?: string): CompileError;
|
|
1544
1544
|
};
|
|
1545
1545
|
|
|
1546
|
-
/**
|
|
1546
|
+
/**
|
|
1547
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
1548
|
+
*
|
|
1549
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
1550
|
+
*/
|
|
1547
1551
|
interface Global<T extends ValueType = ValueType> {
|
|
1548
1552
|
value: ValueTypeMap[T];
|
|
1549
1553
|
valueOf(): ValueTypeMap[T];
|
|
@@ -1554,9 +1558,17 @@ declare namespace WebAssembly {
|
|
|
1554
1558
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
1555
1559
|
};
|
|
1556
1560
|
|
|
1557
|
-
/**
|
|
1561
|
+
/**
|
|
1562
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
1563
|
+
*
|
|
1564
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
1565
|
+
*/
|
|
1558
1566
|
interface Instance {
|
|
1559
|
-
/**
|
|
1567
|
+
/**
|
|
1568
|
+
* The **`exports`** read-only property of the `WebAssembly.Instance` object prototype returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript.
|
|
1569
|
+
*
|
|
1570
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
1571
|
+
*/
|
|
1560
1572
|
readonly exports: Exports;
|
|
1561
1573
|
}
|
|
1562
1574
|
|
|
@@ -1574,11 +1586,23 @@ declare namespace WebAssembly {
|
|
|
1574
1586
|
(message?: string): LinkError;
|
|
1575
1587
|
};
|
|
1576
1588
|
|
|
1577
|
-
/**
|
|
1589
|
+
/**
|
|
1590
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
1591
|
+
*
|
|
1592
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
1593
|
+
*/
|
|
1578
1594
|
interface Memory {
|
|
1579
|
-
/**
|
|
1595
|
+
/**
|
|
1596
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
1597
|
+
*
|
|
1598
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
1599
|
+
*/
|
|
1580
1600
|
readonly buffer: ArrayBuffer;
|
|
1581
|
-
/**
|
|
1601
|
+
/**
|
|
1602
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
1603
|
+
*
|
|
1604
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
1605
|
+
*/
|
|
1582
1606
|
grow(delta: number): number;
|
|
1583
1607
|
}
|
|
1584
1608
|
|
|
@@ -1587,18 +1611,34 @@ declare namespace WebAssembly {
|
|
|
1587
1611
|
new(descriptor: MemoryDescriptor): Memory;
|
|
1588
1612
|
};
|
|
1589
1613
|
|
|
1590
|
-
/**
|
|
1614
|
+
/**
|
|
1615
|
+
* A **`WebAssembly.Module`** object contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently shared with Workers, and instantiated multiple times.
|
|
1616
|
+
*
|
|
1617
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
1618
|
+
*/
|
|
1591
1619
|
interface Module {
|
|
1592
1620
|
}
|
|
1593
1621
|
|
|
1594
1622
|
var Module: {
|
|
1595
1623
|
prototype: Module;
|
|
1596
1624
|
new(bytes: BufferSource): Module;
|
|
1597
|
-
/**
|
|
1625
|
+
/**
|
|
1626
|
+
* 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.
|
|
1627
|
+
*
|
|
1628
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
1629
|
+
*/
|
|
1598
1630
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
1599
|
-
/**
|
|
1631
|
+
/**
|
|
1632
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
1633
|
+
*
|
|
1634
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
1635
|
+
*/
|
|
1600
1636
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
1601
|
-
/**
|
|
1637
|
+
/**
|
|
1638
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
1639
|
+
*
|
|
1640
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
1641
|
+
*/
|
|
1602
1642
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
1603
1643
|
};
|
|
1604
1644
|
|
|
@@ -1611,15 +1651,35 @@ declare namespace WebAssembly {
|
|
|
1611
1651
|
(message?: string): RuntimeError;
|
|
1612
1652
|
};
|
|
1613
1653
|
|
|
1614
|
-
/**
|
|
1654
|
+
/**
|
|
1655
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
1656
|
+
*
|
|
1657
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
1658
|
+
*/
|
|
1615
1659
|
interface Table {
|
|
1616
|
-
/**
|
|
1660
|
+
/**
|
|
1661
|
+
* The read-only **`length`** prototype property of the `WebAssembly.Table` object returns the length of the table, i.e., the number of elements in the table.
|
|
1662
|
+
*
|
|
1663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
1664
|
+
*/
|
|
1617
1665
|
readonly length: number;
|
|
1618
|
-
/**
|
|
1666
|
+
/**
|
|
1667
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
1668
|
+
*
|
|
1669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
1670
|
+
*/
|
|
1619
1671
|
get(index: number): any;
|
|
1620
|
-
/**
|
|
1672
|
+
/**
|
|
1673
|
+
* 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.
|
|
1674
|
+
*
|
|
1675
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
1676
|
+
*/
|
|
1621
1677
|
grow(delta: number, value?: any): number;
|
|
1622
|
-
/**
|
|
1678
|
+
/**
|
|
1679
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
1680
|
+
*
|
|
1681
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
1682
|
+
*/
|
|
1623
1683
|
set(index: number, value?: any): void;
|
|
1624
1684
|
}
|
|
1625
1685
|
|
|
@@ -1881,7 +1941,7 @@ declare var currentTime: number;
|
|
|
1881
1941
|
*/
|
|
1882
1942
|
declare var sampleRate: number;
|
|
1883
1943
|
/**
|
|
1884
|
-
* The **`registerProcessor`** method of the from AudioWorkletProcessor interface under a specified _name_.
|
|
1944
|
+
* The **`registerProcessor`** method of the AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified _name_.
|
|
1885
1945
|
*
|
|
1886
1946
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)
|
|
1887
1947
|
*/
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ interface AudioWorkletGlobalScope extends WorkletGlobalScope {
|
|
|
284
284
|
*/
|
|
285
285
|
readonly sampleRate: number;
|
|
286
286
|
/**
|
|
287
|
-
* The **`registerProcessor`** method of the from AudioWorkletProcessor interface under a specified _name_.
|
|
287
|
+
* The **`registerProcessor`** method of the AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified _name_.
|
|
288
288
|
*
|
|
289
289
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)
|
|
290
290
|
*/
|
|
@@ -303,7 +303,7 @@ declare var AudioWorkletGlobalScope: {
|
|
|
303
303
|
*/
|
|
304
304
|
interface AudioWorkletProcessor {
|
|
305
305
|
/**
|
|
306
|
-
* The read-only **`port`** property of the
|
|
306
|
+
* The read-only **`port`** property of the AudioWorkletProcessor interface returns the associated MessagePort.
|
|
307
307
|
*
|
|
308
308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletProcessor/port)
|
|
309
309
|
*/
|
|
@@ -416,13 +416,13 @@ interface DOMException extends Error {
|
|
|
416
416
|
*/
|
|
417
417
|
readonly code: number;
|
|
418
418
|
/**
|
|
419
|
-
* The **`message`** read-only property of the a message or description associated with the given error name.
|
|
419
|
+
* The **`message`** read-only property of the DOMException interface returns a string representing a message or description associated with the given error name.
|
|
420
420
|
*
|
|
421
421
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
|
|
422
422
|
*/
|
|
423
423
|
readonly message: string;
|
|
424
424
|
/**
|
|
425
|
-
* The **`name`** read-only property of the one of the strings associated with an error name.
|
|
425
|
+
* The **`name`** read-only property of the DOMException interface returns a string that contains one of the strings associated with an error name.
|
|
426
426
|
*
|
|
427
427
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
|
|
428
428
|
*/
|
|
@@ -568,7 +568,7 @@ interface Event {
|
|
|
568
568
|
*/
|
|
569
569
|
readonly cancelable: boolean;
|
|
570
570
|
/**
|
|
571
|
-
* The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
|
571
|
+
* The read-only **`composed`** property of the Event interface returns a boolean value which indicates whether or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
|
572
572
|
*
|
|
573
573
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
|
|
574
574
|
*/
|
|
@@ -586,13 +586,13 @@ interface Event {
|
|
|
586
586
|
*/
|
|
587
587
|
readonly defaultPrevented: boolean;
|
|
588
588
|
/**
|
|
589
|
-
* The **`eventPhase`** read-only property of the being evaluated.
|
|
589
|
+
* The **`eventPhase`** read-only property of the Event interface indicates which phase of the event flow is currently being evaluated.
|
|
590
590
|
*
|
|
591
591
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
|
|
592
592
|
*/
|
|
593
593
|
readonly eventPhase: number;
|
|
594
594
|
/**
|
|
595
|
-
* The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via
|
|
595
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is `true` when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via EventTarget.dispatchEvent().
|
|
596
596
|
*
|
|
597
597
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
598
598
|
*/
|
|
@@ -612,7 +612,7 @@ interface Event {
|
|
|
612
612
|
*/
|
|
613
613
|
readonly srcElement: EventTarget | null;
|
|
614
614
|
/**
|
|
615
|
-
* The read-only **`target`** property of the dispatched.
|
|
615
|
+
* The read-only **`target`** property of the Event interface is a reference to the object onto which the event was dispatched.
|
|
616
616
|
*
|
|
617
617
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
|
|
618
618
|
*/
|
|
@@ -649,7 +649,7 @@ interface Event {
|
|
|
649
649
|
*/
|
|
650
650
|
preventDefault(): void;
|
|
651
651
|
/**
|
|
652
|
-
* The **`stopImmediatePropagation()`** method of the
|
|
652
|
+
* The **`stopImmediatePropagation()`** method of the Event interface prevents other listeners of the same event from being called.
|
|
653
653
|
*
|
|
654
654
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
|
|
655
655
|
*/
|
|
@@ -728,31 +728,31 @@ interface GenericTransformStream {
|
|
|
728
728
|
*/
|
|
729
729
|
interface MessageEvent<T = any> extends Event {
|
|
730
730
|
/**
|
|
731
|
-
* The **`data`** read-only property of the
|
|
731
|
+
* The **`data`** read-only property of the MessageEvent interface represents the data sent by the message emitter.
|
|
732
732
|
*
|
|
733
733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
|
|
734
734
|
*/
|
|
735
735
|
readonly data: T;
|
|
736
736
|
/**
|
|
737
|
-
* The **`lastEventId`** read-only property of the unique ID for the event.
|
|
737
|
+
* The **`lastEventId`** read-only property of the MessageEvent interface is a string representing a unique ID for the event.
|
|
738
738
|
*
|
|
739
739
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
|
|
740
740
|
*/
|
|
741
741
|
readonly lastEventId: string;
|
|
742
742
|
/**
|
|
743
|
-
* The **`origin`** read-only property of the origin of the message emitter.
|
|
743
|
+
* The **`origin`** read-only property of the MessageEvent interface is a string representing the origin of the message emitter.
|
|
744
744
|
*
|
|
745
745
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
|
|
746
746
|
*/
|
|
747
747
|
readonly origin: string;
|
|
748
748
|
/**
|
|
749
|
-
* The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order.
|
|
749
|
+
* The **`ports`** read-only property of the MessageEvent interface is an array of MessagePort objects containing all MessagePort objects sent with the message, in order.
|
|
750
750
|
*
|
|
751
751
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
|
|
752
752
|
*/
|
|
753
753
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
754
754
|
/**
|
|
755
|
-
* The **`source`** read-only property of the
|
|
755
|
+
* The **`source`** read-only property of the MessageEvent interface is a `MessageEventSource` (which can be a WindowProxy, MessagePort, or ServiceWorker object) representing the message emitter.
|
|
756
756
|
*
|
|
757
757
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
|
|
758
758
|
*/
|
|
@@ -800,7 +800,7 @@ interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
|
|
|
800
800
|
*/
|
|
801
801
|
close(): void;
|
|
802
802
|
/**
|
|
803
|
-
* The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.
|
|
803
|
+
* The **`postMessage()`** method of the MessagePort interface sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
|
|
804
804
|
*
|
|
805
805
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
|
|
806
806
|
*/
|
|
@@ -830,7 +830,7 @@ declare var MessagePort: {
|
|
|
830
830
|
*/
|
|
831
831
|
interface PromiseRejectionEvent extends Event {
|
|
832
832
|
/**
|
|
833
|
-
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript rejected.
|
|
833
|
+
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript Promise which was rejected.
|
|
834
834
|
*
|
|
835
835
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
|
|
836
836
|
*/
|
|
@@ -930,7 +930,7 @@ interface ReadableStream<R = any> {
|
|
|
930
930
|
*/
|
|
931
931
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
932
932
|
/**
|
|
933
|
-
* The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
|
|
933
|
+
* The **`tee()`** method of the ReadableStream interface tees the current readable stream, returning a two-element array containing the two resulting branches as new ReadableStream instances.
|
|
934
934
|
*
|
|
935
935
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
|
|
936
936
|
*/
|
|
@@ -1007,7 +1007,7 @@ declare var ReadableStreamBYOBRequest: {
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
interface ReadableStreamDefaultController<R = any> {
|
|
1009
1009
|
/**
|
|
1010
|
-
* The **`desiredSize`** read-only property of the required to fill the stream's internal queue.
|
|
1010
|
+
* The **`desiredSize`** read-only property of the ReadableStreamDefaultController interface returns the desired size required to fill the stream's internal queue.
|
|
1011
1011
|
*
|
|
1012
1012
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
|
|
1013
1013
|
*/
|
|
@@ -1019,13 +1019,13 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
1019
1019
|
*/
|
|
1020
1020
|
close(): void;
|
|
1021
1021
|
/**
|
|
1022
|
-
* The **`enqueue()`** method of the
|
|
1022
|
+
* The **`enqueue()`** method of the ReadableStreamDefaultController interface enqueues a given chunk in the associated stream.
|
|
1023
1023
|
*
|
|
1024
1024
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
1025
1025
|
*/
|
|
1026
1026
|
enqueue(chunk?: R): void;
|
|
1027
1027
|
/**
|
|
1028
|
-
* The **`error()`** method of the with the associated stream to error.
|
|
1028
|
+
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
1029
1029
|
*
|
|
1030
1030
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
|
|
1031
1031
|
*/
|
|
@@ -1303,7 +1303,7 @@ interface URL {
|
|
|
1303
1303
|
*/
|
|
1304
1304
|
search: string;
|
|
1305
1305
|
/**
|
|
1306
|
-
* The **`searchParams`** read-only property of the access to the
|
|
1306
|
+
* The **`searchParams`** read-only property of the URL interface returns a URLSearchParams object allowing access to the GET decoded query arguments contained in the URL.
|
|
1307
1307
|
*
|
|
1308
1308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
|
|
1309
1309
|
*/
|
|
@@ -1315,7 +1315,7 @@ interface URL {
|
|
|
1315
1315
|
*/
|
|
1316
1316
|
username: string;
|
|
1317
1317
|
/**
|
|
1318
|
-
* The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as
|
|
1318
|
+
* The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as URL.toString().
|
|
1319
1319
|
*
|
|
1320
1320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
|
|
1321
1321
|
*/
|
|
@@ -1466,7 +1466,7 @@ interface WritableStreamDefaultController {
|
|
|
1466
1466
|
*/
|
|
1467
1467
|
readonly signal: AbortSignal;
|
|
1468
1468
|
/**
|
|
1469
|
-
* The **`error()`** method of the with the associated stream to error.
|
|
1469
|
+
* The **`error()`** method of the WritableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
1470
1470
|
*
|
|
1471
1471
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
|
|
1472
1472
|
*/
|
|
@@ -1485,43 +1485,43 @@ declare var WritableStreamDefaultController: {
|
|
|
1485
1485
|
*/
|
|
1486
1486
|
interface WritableStreamDefaultWriter<W = any> {
|
|
1487
1487
|
/**
|
|
1488
|
-
* The **`closed`** read-only property of the the stream errors or the writer's lock is released.
|
|
1488
|
+
* The **`closed`** read-only property of the WritableStreamDefaultWriter interface returns a Promise that fulfills if the stream becomes closed, or rejects if the stream errors or the writer's lock is released.
|
|
1489
1489
|
*
|
|
1490
1490
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
|
|
1491
1491
|
*/
|
|
1492
1492
|
readonly closed: Promise<void>;
|
|
1493
1493
|
/**
|
|
1494
|
-
* The **`desiredSize`** read-only property of the to fill the stream's internal queue.
|
|
1494
|
+
* The **`desiredSize`** read-only property of the WritableStreamDefaultWriter interface returns the desired size required to fill the stream's internal queue.
|
|
1495
1495
|
*
|
|
1496
1496
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
|
|
1497
1497
|
*/
|
|
1498
1498
|
readonly desiredSize: number | null;
|
|
1499
1499
|
/**
|
|
1500
|
-
* The **`ready`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
|
|
1500
|
+
* The **`ready`** read-only property of the WritableStreamDefaultWriter interface returns a Promise that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
|
|
1501
1501
|
*
|
|
1502
1502
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
|
|
1503
1503
|
*/
|
|
1504
1504
|
readonly ready: Promise<void>;
|
|
1505
1505
|
/**
|
|
1506
|
-
* The **`abort()`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
1506
|
+
* The **`abort()`** method of the WritableStreamDefaultWriter interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
1507
1507
|
*
|
|
1508
1508
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
|
|
1509
1509
|
*/
|
|
1510
1510
|
abort(reason?: any): Promise<void>;
|
|
1511
1511
|
/**
|
|
1512
|
-
* The **`close()`** method of the stream.
|
|
1512
|
+
* The **`close()`** method of the WritableStreamDefaultWriter interface closes the associated writable stream.
|
|
1513
1513
|
*
|
|
1514
1514
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
|
|
1515
1515
|
*/
|
|
1516
1516
|
close(): Promise<void>;
|
|
1517
1517
|
/**
|
|
1518
|
-
* The **`releaseLock()`** method of the corresponding stream.
|
|
1518
|
+
* The **`releaseLock()`** method of the WritableStreamDefaultWriter interface releases the writer's lock on the corresponding stream.
|
|
1519
1519
|
*
|
|
1520
1520
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
|
|
1521
1521
|
*/
|
|
1522
1522
|
releaseLock(): void;
|
|
1523
1523
|
/**
|
|
1524
|
-
* The **`write()`** method of the operation.
|
|
1524
|
+
* The **`write()`** method of the WritableStreamDefaultWriter interface writes a passed chunk of data to a WritableStream and its underlying sink, then returns a Promise that resolves to indicate the success or failure of the write operation.
|
|
1525
1525
|
*
|
|
1526
1526
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
|
|
1527
1527
|
*/
|
|
@@ -1543,7 +1543,11 @@ declare namespace WebAssembly {
|
|
|
1543
1543
|
(message?: string): CompileError;
|
|
1544
1544
|
};
|
|
1545
1545
|
|
|
1546
|
-
/**
|
|
1546
|
+
/**
|
|
1547
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
1548
|
+
*
|
|
1549
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
1550
|
+
*/
|
|
1547
1551
|
interface Global<T extends ValueType = ValueType> {
|
|
1548
1552
|
value: ValueTypeMap[T];
|
|
1549
1553
|
valueOf(): ValueTypeMap[T];
|
|
@@ -1554,9 +1558,17 @@ declare namespace WebAssembly {
|
|
|
1554
1558
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
1555
1559
|
};
|
|
1556
1560
|
|
|
1557
|
-
/**
|
|
1561
|
+
/**
|
|
1562
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
1563
|
+
*
|
|
1564
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
1565
|
+
*/
|
|
1558
1566
|
interface Instance {
|
|
1559
|
-
/**
|
|
1567
|
+
/**
|
|
1568
|
+
* The **`exports`** read-only property of the `WebAssembly.Instance` object prototype returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript.
|
|
1569
|
+
*
|
|
1570
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
1571
|
+
*/
|
|
1560
1572
|
readonly exports: Exports;
|
|
1561
1573
|
}
|
|
1562
1574
|
|
|
@@ -1574,11 +1586,23 @@ declare namespace WebAssembly {
|
|
|
1574
1586
|
(message?: string): LinkError;
|
|
1575
1587
|
};
|
|
1576
1588
|
|
|
1577
|
-
/**
|
|
1589
|
+
/**
|
|
1590
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
1591
|
+
*
|
|
1592
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
1593
|
+
*/
|
|
1578
1594
|
interface Memory {
|
|
1579
|
-
/**
|
|
1595
|
+
/**
|
|
1596
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
1597
|
+
*
|
|
1598
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
1599
|
+
*/
|
|
1580
1600
|
readonly buffer: ArrayBuffer;
|
|
1581
|
-
/**
|
|
1601
|
+
/**
|
|
1602
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
1603
|
+
*
|
|
1604
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
1605
|
+
*/
|
|
1582
1606
|
grow(delta: number): number;
|
|
1583
1607
|
}
|
|
1584
1608
|
|
|
@@ -1587,18 +1611,34 @@ declare namespace WebAssembly {
|
|
|
1587
1611
|
new(descriptor: MemoryDescriptor): Memory;
|
|
1588
1612
|
};
|
|
1589
1613
|
|
|
1590
|
-
/**
|
|
1614
|
+
/**
|
|
1615
|
+
* A **`WebAssembly.Module`** object contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently shared with Workers, and instantiated multiple times.
|
|
1616
|
+
*
|
|
1617
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
1618
|
+
*/
|
|
1591
1619
|
interface Module {
|
|
1592
1620
|
}
|
|
1593
1621
|
|
|
1594
1622
|
var Module: {
|
|
1595
1623
|
prototype: Module;
|
|
1596
1624
|
new(bytes: BufferSource): Module;
|
|
1597
|
-
/**
|
|
1625
|
+
/**
|
|
1626
|
+
* 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.
|
|
1627
|
+
*
|
|
1628
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
1629
|
+
*/
|
|
1598
1630
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
1599
|
-
/**
|
|
1631
|
+
/**
|
|
1632
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
1633
|
+
*
|
|
1634
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
1635
|
+
*/
|
|
1600
1636
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
1601
|
-
/**
|
|
1637
|
+
/**
|
|
1638
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
1639
|
+
*
|
|
1640
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
1641
|
+
*/
|
|
1602
1642
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
1603
1643
|
};
|
|
1604
1644
|
|
|
@@ -1611,15 +1651,35 @@ declare namespace WebAssembly {
|
|
|
1611
1651
|
(message?: string): RuntimeError;
|
|
1612
1652
|
};
|
|
1613
1653
|
|
|
1614
|
-
/**
|
|
1654
|
+
/**
|
|
1655
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
1656
|
+
*
|
|
1657
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
1658
|
+
*/
|
|
1615
1659
|
interface Table {
|
|
1616
|
-
/**
|
|
1660
|
+
/**
|
|
1661
|
+
* The read-only **`length`** prototype property of the `WebAssembly.Table` object returns the length of the table, i.e., the number of elements in the table.
|
|
1662
|
+
*
|
|
1663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
1664
|
+
*/
|
|
1617
1665
|
readonly length: number;
|
|
1618
|
-
/**
|
|
1666
|
+
/**
|
|
1667
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
1668
|
+
*
|
|
1669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
1670
|
+
*/
|
|
1619
1671
|
get(index: number): any;
|
|
1620
|
-
/**
|
|
1672
|
+
/**
|
|
1673
|
+
* 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.
|
|
1674
|
+
*
|
|
1675
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
1676
|
+
*/
|
|
1621
1677
|
grow(delta: number, value?: any): number;
|
|
1622
|
-
/**
|
|
1678
|
+
/**
|
|
1679
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
1680
|
+
*
|
|
1681
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
1682
|
+
*/
|
|
1623
1683
|
set(index: number, value?: any): void;
|
|
1624
1684
|
}
|
|
1625
1685
|
|
|
@@ -1881,7 +1941,7 @@ declare var currentTime: number;
|
|
|
1881
1941
|
*/
|
|
1882
1942
|
declare var sampleRate: number;
|
|
1883
1943
|
/**
|
|
1884
|
-
* The **`registerProcessor`** method of the from AudioWorkletProcessor interface under a specified _name_.
|
|
1944
|
+
* The **`registerProcessor`** method of the AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified _name_.
|
|
1885
1945
|
*
|
|
1886
1946
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)
|
|
1887
1947
|
*/
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ interface AudioWorkletGlobalScope extends WorkletGlobalScope {
|
|
|
284
284
|
*/
|
|
285
285
|
readonly sampleRate: number;
|
|
286
286
|
/**
|
|
287
|
-
* The **`registerProcessor`** method of the from AudioWorkletProcessor interface under a specified _name_.
|
|
287
|
+
* The **`registerProcessor`** method of the AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified _name_.
|
|
288
288
|
*
|
|
289
289
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)
|
|
290
290
|
*/
|
|
@@ -303,7 +303,7 @@ declare var AudioWorkletGlobalScope: {
|
|
|
303
303
|
*/
|
|
304
304
|
interface AudioWorkletProcessor {
|
|
305
305
|
/**
|
|
306
|
-
* The read-only **`port`** property of the
|
|
306
|
+
* The read-only **`port`** property of the AudioWorkletProcessor interface returns the associated MessagePort.
|
|
307
307
|
*
|
|
308
308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletProcessor/port)
|
|
309
309
|
*/
|
|
@@ -416,13 +416,13 @@ interface DOMException extends Error {
|
|
|
416
416
|
*/
|
|
417
417
|
readonly code: number;
|
|
418
418
|
/**
|
|
419
|
-
* The **`message`** read-only property of the a message or description associated with the given error name.
|
|
419
|
+
* The **`message`** read-only property of the DOMException interface returns a string representing a message or description associated with the given error name.
|
|
420
420
|
*
|
|
421
421
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message)
|
|
422
422
|
*/
|
|
423
423
|
readonly message: string;
|
|
424
424
|
/**
|
|
425
|
-
* The **`name`** read-only property of the one of the strings associated with an error name.
|
|
425
|
+
* The **`name`** read-only property of the DOMException interface returns a string that contains one of the strings associated with an error name.
|
|
426
426
|
*
|
|
427
427
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name)
|
|
428
428
|
*/
|
|
@@ -568,7 +568,7 @@ interface Event {
|
|
|
568
568
|
*/
|
|
569
569
|
readonly cancelable: boolean;
|
|
570
570
|
/**
|
|
571
|
-
* The read-only **`composed`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
|
571
|
+
* The read-only **`composed`** property of the Event interface returns a boolean value which indicates whether or not the event will propagate across the shadow DOM boundary into the standard DOM.
|
|
572
572
|
*
|
|
573
573
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
|
|
574
574
|
*/
|
|
@@ -586,13 +586,13 @@ interface Event {
|
|
|
586
586
|
*/
|
|
587
587
|
readonly defaultPrevented: boolean;
|
|
588
588
|
/**
|
|
589
|
-
* The **`eventPhase`** read-only property of the being evaluated.
|
|
589
|
+
* The **`eventPhase`** read-only property of the Event interface indicates which phase of the event flow is currently being evaluated.
|
|
590
590
|
*
|
|
591
591
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
|
|
592
592
|
*/
|
|
593
593
|
readonly eventPhase: number;
|
|
594
594
|
/**
|
|
595
|
-
* The **`isTrusted`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via
|
|
595
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is `true` when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and `false` when the event was dispatched via EventTarget.dispatchEvent().
|
|
596
596
|
*
|
|
597
597
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
598
598
|
*/
|
|
@@ -612,7 +612,7 @@ interface Event {
|
|
|
612
612
|
*/
|
|
613
613
|
readonly srcElement: EventTarget | null;
|
|
614
614
|
/**
|
|
615
|
-
* The read-only **`target`** property of the dispatched.
|
|
615
|
+
* The read-only **`target`** property of the Event interface is a reference to the object onto which the event was dispatched.
|
|
616
616
|
*
|
|
617
617
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
|
|
618
618
|
*/
|
|
@@ -649,7 +649,7 @@ interface Event {
|
|
|
649
649
|
*/
|
|
650
650
|
preventDefault(): void;
|
|
651
651
|
/**
|
|
652
|
-
* The **`stopImmediatePropagation()`** method of the
|
|
652
|
+
* The **`stopImmediatePropagation()`** method of the Event interface prevents other listeners of the same event from being called.
|
|
653
653
|
*
|
|
654
654
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
|
|
655
655
|
*/
|
|
@@ -728,31 +728,31 @@ interface GenericTransformStream {
|
|
|
728
728
|
*/
|
|
729
729
|
interface MessageEvent<T = any> extends Event {
|
|
730
730
|
/**
|
|
731
|
-
* The **`data`** read-only property of the
|
|
731
|
+
* The **`data`** read-only property of the MessageEvent interface represents the data sent by the message emitter.
|
|
732
732
|
*
|
|
733
733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
|
|
734
734
|
*/
|
|
735
735
|
readonly data: T;
|
|
736
736
|
/**
|
|
737
|
-
* The **`lastEventId`** read-only property of the unique ID for the event.
|
|
737
|
+
* The **`lastEventId`** read-only property of the MessageEvent interface is a string representing a unique ID for the event.
|
|
738
738
|
*
|
|
739
739
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
|
|
740
740
|
*/
|
|
741
741
|
readonly lastEventId: string;
|
|
742
742
|
/**
|
|
743
|
-
* The **`origin`** read-only property of the origin of the message emitter.
|
|
743
|
+
* The **`origin`** read-only property of the MessageEvent interface is a string representing the origin of the message emitter.
|
|
744
744
|
*
|
|
745
745
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
|
|
746
746
|
*/
|
|
747
747
|
readonly origin: string;
|
|
748
748
|
/**
|
|
749
|
-
* The **`ports`** read-only property of the containing all MessagePort objects sent with the message, in order.
|
|
749
|
+
* The **`ports`** read-only property of the MessageEvent interface is an array of MessagePort objects containing all MessagePort objects sent with the message, in order.
|
|
750
750
|
*
|
|
751
751
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
|
|
752
752
|
*/
|
|
753
753
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
754
754
|
/**
|
|
755
|
-
* The **`source`** read-only property of the
|
|
755
|
+
* The **`source`** read-only property of the MessageEvent interface is a `MessageEventSource` (which can be a WindowProxy, MessagePort, or ServiceWorker object) representing the message emitter.
|
|
756
756
|
*
|
|
757
757
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
|
|
758
758
|
*/
|
|
@@ -800,7 +800,7 @@ interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
|
|
|
800
800
|
*/
|
|
801
801
|
close(): void;
|
|
802
802
|
/**
|
|
803
|
-
* The **`postMessage()`** method of the transfers ownership of objects to other browsing contexts.
|
|
803
|
+
* The **`postMessage()`** method of the MessagePort interface sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
|
|
804
804
|
*
|
|
805
805
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
|
|
806
806
|
*/
|
|
@@ -830,7 +830,7 @@ declare var MessagePort: {
|
|
|
830
830
|
*/
|
|
831
831
|
interface PromiseRejectionEvent extends Event {
|
|
832
832
|
/**
|
|
833
|
-
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript rejected.
|
|
833
|
+
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript Promise which was rejected.
|
|
834
834
|
*
|
|
835
835
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
|
|
836
836
|
*/
|
|
@@ -930,7 +930,7 @@ interface ReadableStream<R = any> {
|
|
|
930
930
|
*/
|
|
931
931
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
932
932
|
/**
|
|
933
|
-
* The **`tee()`** method of the two-element array containing the two resulting branches as new ReadableStream instances.
|
|
933
|
+
* The **`tee()`** method of the ReadableStream interface tees the current readable stream, returning a two-element array containing the two resulting branches as new ReadableStream instances.
|
|
934
934
|
*
|
|
935
935
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee)
|
|
936
936
|
*/
|
|
@@ -1007,7 +1007,7 @@ declare var ReadableStreamBYOBRequest: {
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
interface ReadableStreamDefaultController<R = any> {
|
|
1009
1009
|
/**
|
|
1010
|
-
* The **`desiredSize`** read-only property of the required to fill the stream's internal queue.
|
|
1010
|
+
* The **`desiredSize`** read-only property of the ReadableStreamDefaultController interface returns the desired size required to fill the stream's internal queue.
|
|
1011
1011
|
*
|
|
1012
1012
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize)
|
|
1013
1013
|
*/
|
|
@@ -1019,13 +1019,13 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
1019
1019
|
*/
|
|
1020
1020
|
close(): void;
|
|
1021
1021
|
/**
|
|
1022
|
-
* The **`enqueue()`** method of the
|
|
1022
|
+
* The **`enqueue()`** method of the ReadableStreamDefaultController interface enqueues a given chunk in the associated stream.
|
|
1023
1023
|
*
|
|
1024
1024
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
1025
1025
|
*/
|
|
1026
1026
|
enqueue(chunk?: R): void;
|
|
1027
1027
|
/**
|
|
1028
|
-
* The **`error()`** method of the with the associated stream to error.
|
|
1028
|
+
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
1029
1029
|
*
|
|
1030
1030
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error)
|
|
1031
1031
|
*/
|
|
@@ -1303,7 +1303,7 @@ interface URL {
|
|
|
1303
1303
|
*/
|
|
1304
1304
|
search: string;
|
|
1305
1305
|
/**
|
|
1306
|
-
* The **`searchParams`** read-only property of the access to the
|
|
1306
|
+
* The **`searchParams`** read-only property of the URL interface returns a URLSearchParams object allowing access to the GET decoded query arguments contained in the URL.
|
|
1307
1307
|
*
|
|
1308
1308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams)
|
|
1309
1309
|
*/
|
|
@@ -1315,7 +1315,7 @@ interface URL {
|
|
|
1315
1315
|
*/
|
|
1316
1316
|
username: string;
|
|
1317
1317
|
/**
|
|
1318
|
-
* The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as
|
|
1318
|
+
* The **`toJSON()`** method of the URL interface returns a string containing a serialized version of the URL, although in practice it seems to have the same effect as URL.toString().
|
|
1319
1319
|
*
|
|
1320
1320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON)
|
|
1321
1321
|
*/
|
|
@@ -1466,7 +1466,7 @@ interface WritableStreamDefaultController {
|
|
|
1466
1466
|
*/
|
|
1467
1467
|
readonly signal: AbortSignal;
|
|
1468
1468
|
/**
|
|
1469
|
-
* The **`error()`** method of the with the associated stream to error.
|
|
1469
|
+
* The **`error()`** method of the WritableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
1470
1470
|
*
|
|
1471
1471
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error)
|
|
1472
1472
|
*/
|
|
@@ -1485,43 +1485,43 @@ declare var WritableStreamDefaultController: {
|
|
|
1485
1485
|
*/
|
|
1486
1486
|
interface WritableStreamDefaultWriter<W = any> {
|
|
1487
1487
|
/**
|
|
1488
|
-
* The **`closed`** read-only property of the the stream errors or the writer's lock is released.
|
|
1488
|
+
* The **`closed`** read-only property of the WritableStreamDefaultWriter interface returns a Promise that fulfills if the stream becomes closed, or rejects if the stream errors or the writer's lock is released.
|
|
1489
1489
|
*
|
|
1490
1490
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed)
|
|
1491
1491
|
*/
|
|
1492
1492
|
readonly closed: Promise<void>;
|
|
1493
1493
|
/**
|
|
1494
|
-
* The **`desiredSize`** read-only property of the to fill the stream's internal queue.
|
|
1494
|
+
* The **`desiredSize`** read-only property of the WritableStreamDefaultWriter interface returns the desired size required to fill the stream's internal queue.
|
|
1495
1495
|
*
|
|
1496
1496
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize)
|
|
1497
1497
|
*/
|
|
1498
1498
|
readonly desiredSize: number | null;
|
|
1499
1499
|
/**
|
|
1500
|
-
* The **`ready`** read-only property of the that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
|
|
1500
|
+
* The **`ready`** read-only property of the WritableStreamDefaultWriter interface returns a Promise that resolves when the desired size of the stream's internal queue transitions from non-positive to positive, signaling that it is no longer applying backpressure.
|
|
1501
1501
|
*
|
|
1502
1502
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready)
|
|
1503
1503
|
*/
|
|
1504
1504
|
readonly ready: Promise<void>;
|
|
1505
1505
|
/**
|
|
1506
|
-
* The **`abort()`** method of the the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
1506
|
+
* The **`abort()`** method of the WritableStreamDefaultWriter interface aborts the stream, signaling that the producer can no longer successfully write to the stream and it is to be immediately moved to an error state, with any queued writes discarded.
|
|
1507
1507
|
*
|
|
1508
1508
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort)
|
|
1509
1509
|
*/
|
|
1510
1510
|
abort(reason?: any): Promise<void>;
|
|
1511
1511
|
/**
|
|
1512
|
-
* The **`close()`** method of the stream.
|
|
1512
|
+
* The **`close()`** method of the WritableStreamDefaultWriter interface closes the associated writable stream.
|
|
1513
1513
|
*
|
|
1514
1514
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close)
|
|
1515
1515
|
*/
|
|
1516
1516
|
close(): Promise<void>;
|
|
1517
1517
|
/**
|
|
1518
|
-
* The **`releaseLock()`** method of the corresponding stream.
|
|
1518
|
+
* The **`releaseLock()`** method of the WritableStreamDefaultWriter interface releases the writer's lock on the corresponding stream.
|
|
1519
1519
|
*
|
|
1520
1520
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
|
|
1521
1521
|
*/
|
|
1522
1522
|
releaseLock(): void;
|
|
1523
1523
|
/**
|
|
1524
|
-
* The **`write()`** method of the operation.
|
|
1524
|
+
* The **`write()`** method of the WritableStreamDefaultWriter interface writes a passed chunk of data to a WritableStream and its underlying sink, then returns a Promise that resolves to indicate the success or failure of the write operation.
|
|
1525
1525
|
*
|
|
1526
1526
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write)
|
|
1527
1527
|
*/
|
|
@@ -1543,7 +1543,11 @@ declare namespace WebAssembly {
|
|
|
1543
1543
|
(message?: string): CompileError;
|
|
1544
1544
|
};
|
|
1545
1545
|
|
|
1546
|
-
/**
|
|
1546
|
+
/**
|
|
1547
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
1548
|
+
*
|
|
1549
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
1550
|
+
*/
|
|
1547
1551
|
interface Global<T extends ValueType = ValueType> {
|
|
1548
1552
|
value: ValueTypeMap[T];
|
|
1549
1553
|
valueOf(): ValueTypeMap[T];
|
|
@@ -1554,9 +1558,17 @@ declare namespace WebAssembly {
|
|
|
1554
1558
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
1555
1559
|
};
|
|
1556
1560
|
|
|
1557
|
-
/**
|
|
1561
|
+
/**
|
|
1562
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
1563
|
+
*
|
|
1564
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
1565
|
+
*/
|
|
1558
1566
|
interface Instance {
|
|
1559
|
-
/**
|
|
1567
|
+
/**
|
|
1568
|
+
* The **`exports`** read-only property of the `WebAssembly.Instance` object prototype returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript.
|
|
1569
|
+
*
|
|
1570
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
1571
|
+
*/
|
|
1560
1572
|
readonly exports: Exports;
|
|
1561
1573
|
}
|
|
1562
1574
|
|
|
@@ -1574,11 +1586,23 @@ declare namespace WebAssembly {
|
|
|
1574
1586
|
(message?: string): LinkError;
|
|
1575
1587
|
};
|
|
1576
1588
|
|
|
1577
|
-
/**
|
|
1589
|
+
/**
|
|
1590
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
1591
|
+
*
|
|
1592
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
1593
|
+
*/
|
|
1578
1594
|
interface Memory {
|
|
1579
|
-
/**
|
|
1595
|
+
/**
|
|
1596
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
1597
|
+
*
|
|
1598
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
1599
|
+
*/
|
|
1580
1600
|
readonly buffer: ArrayBuffer;
|
|
1581
|
-
/**
|
|
1601
|
+
/**
|
|
1602
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
1603
|
+
*
|
|
1604
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
1605
|
+
*/
|
|
1582
1606
|
grow(delta: number): number;
|
|
1583
1607
|
}
|
|
1584
1608
|
|
|
@@ -1587,18 +1611,34 @@ declare namespace WebAssembly {
|
|
|
1587
1611
|
new(descriptor: MemoryDescriptor): Memory;
|
|
1588
1612
|
};
|
|
1589
1613
|
|
|
1590
|
-
/**
|
|
1614
|
+
/**
|
|
1615
|
+
* A **`WebAssembly.Module`** object contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently shared with Workers, and instantiated multiple times.
|
|
1616
|
+
*
|
|
1617
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
1618
|
+
*/
|
|
1591
1619
|
interface Module {
|
|
1592
1620
|
}
|
|
1593
1621
|
|
|
1594
1622
|
var Module: {
|
|
1595
1623
|
prototype: Module;
|
|
1596
1624
|
new(bytes: BufferSource): Module;
|
|
1597
|
-
/**
|
|
1625
|
+
/**
|
|
1626
|
+
* 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.
|
|
1627
|
+
*
|
|
1628
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
1629
|
+
*/
|
|
1598
1630
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
1599
|
-
/**
|
|
1631
|
+
/**
|
|
1632
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
1633
|
+
*
|
|
1634
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
1635
|
+
*/
|
|
1600
1636
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
1601
|
-
/**
|
|
1637
|
+
/**
|
|
1638
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
1639
|
+
*
|
|
1640
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
1641
|
+
*/
|
|
1602
1642
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
1603
1643
|
};
|
|
1604
1644
|
|
|
@@ -1611,15 +1651,35 @@ declare namespace WebAssembly {
|
|
|
1611
1651
|
(message?: string): RuntimeError;
|
|
1612
1652
|
};
|
|
1613
1653
|
|
|
1614
|
-
/**
|
|
1654
|
+
/**
|
|
1655
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
1656
|
+
*
|
|
1657
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
1658
|
+
*/
|
|
1615
1659
|
interface Table {
|
|
1616
|
-
/**
|
|
1660
|
+
/**
|
|
1661
|
+
* The read-only **`length`** prototype property of the `WebAssembly.Table` object returns the length of the table, i.e., the number of elements in the table.
|
|
1662
|
+
*
|
|
1663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
1664
|
+
*/
|
|
1617
1665
|
readonly length: number;
|
|
1618
|
-
/**
|
|
1666
|
+
/**
|
|
1667
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
1668
|
+
*
|
|
1669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
1670
|
+
*/
|
|
1619
1671
|
get(index: number): any;
|
|
1620
|
-
/**
|
|
1672
|
+
/**
|
|
1673
|
+
* 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.
|
|
1674
|
+
*
|
|
1675
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
1676
|
+
*/
|
|
1621
1677
|
grow(delta: number, value?: any): number;
|
|
1622
|
-
/**
|
|
1678
|
+
/**
|
|
1679
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
1680
|
+
*
|
|
1681
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
1682
|
+
*/
|
|
1623
1683
|
set(index: number, value?: any): void;
|
|
1624
1684
|
}
|
|
1625
1685
|
|
|
@@ -1881,7 +1941,7 @@ declare var currentTime: number;
|
|
|
1881
1941
|
*/
|
|
1882
1942
|
declare var sampleRate: number;
|
|
1883
1943
|
/**
|
|
1884
|
-
* The **`registerProcessor`** method of the from AudioWorkletProcessor interface under a specified _name_.
|
|
1944
|
+
* The **`registerProcessor`** method of the AudioWorkletGlobalScope interface registers a class constructor derived from AudioWorkletProcessor interface under a specified _name_.
|
|
1885
1945
|
*
|
|
1886
1946
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)
|
|
1887
1947
|
*/
|