@types/audioworklet 0.0.78 → 0.0.80
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 +76 -16
- package/package.json +1 -1
- package/ts5.5/index.d.ts +76 -16
- package/ts5.6/index.d.ts +76 -16
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.80 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.80.
|
package/index.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ declare var AbortSignal: {
|
|
|
250
250
|
*
|
|
251
251
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
252
252
|
*/
|
|
253
|
-
|
|
253
|
+
abort(reason?: any): AbortSignal;
|
|
254
254
|
/**
|
|
255
255
|
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
256
256
|
*
|
|
@@ -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
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ declare var AbortSignal: {
|
|
|
250
250
|
*
|
|
251
251
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
252
252
|
*/
|
|
253
|
-
|
|
253
|
+
abort(reason?: any): AbortSignal;
|
|
254
254
|
/**
|
|
255
255
|
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
256
256
|
*
|
|
@@ -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
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ declare var AbortSignal: {
|
|
|
250
250
|
*
|
|
251
251
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
252
252
|
*/
|
|
253
|
-
|
|
253
|
+
abort(reason?: any): AbortSignal;
|
|
254
254
|
/**
|
|
255
255
|
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
256
256
|
*
|
|
@@ -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
|
|