@types/webworker 0.0.17 → 0.0.18
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 +75 -15
- package/package.json +1 -1
- package/ts5.5/index.d.ts +75 -15
- package/ts5.6/index.d.ts +75 -15
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.18 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.18.
|
package/index.d.ts
CHANGED
|
@@ -12572,7 +12572,11 @@ declare namespace WebAssembly {
|
|
|
12572
12572
|
(message?: string): CompileError;
|
|
12573
12573
|
};
|
|
12574
12574
|
|
|
12575
|
-
/**
|
|
12575
|
+
/**
|
|
12576
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
12577
|
+
*
|
|
12578
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12579
|
+
*/
|
|
12576
12580
|
interface Global<T extends ValueType = ValueType> {
|
|
12577
12581
|
value: ValueTypeMap[T];
|
|
12578
12582
|
valueOf(): ValueTypeMap[T];
|
|
@@ -12583,9 +12587,17 @@ declare namespace WebAssembly {
|
|
|
12583
12587
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
12584
12588
|
};
|
|
12585
12589
|
|
|
12586
|
-
/**
|
|
12590
|
+
/**
|
|
12591
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
12592
|
+
*
|
|
12593
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
12594
|
+
*/
|
|
12587
12595
|
interface Instance {
|
|
12588
|
-
/**
|
|
12596
|
+
/**
|
|
12597
|
+
* 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.
|
|
12598
|
+
*
|
|
12599
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
12600
|
+
*/
|
|
12589
12601
|
readonly exports: Exports;
|
|
12590
12602
|
}
|
|
12591
12603
|
|
|
@@ -12603,11 +12615,23 @@ declare namespace WebAssembly {
|
|
|
12603
12615
|
(message?: string): LinkError;
|
|
12604
12616
|
};
|
|
12605
12617
|
|
|
12606
|
-
/**
|
|
12618
|
+
/**
|
|
12619
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
12620
|
+
*
|
|
12621
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
12622
|
+
*/
|
|
12607
12623
|
interface Memory {
|
|
12608
|
-
/**
|
|
12624
|
+
/**
|
|
12625
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
12626
|
+
*
|
|
12627
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
12628
|
+
*/
|
|
12609
12629
|
readonly buffer: ArrayBuffer;
|
|
12610
|
-
/**
|
|
12630
|
+
/**
|
|
12631
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
12632
|
+
*
|
|
12633
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
12634
|
+
*/
|
|
12611
12635
|
grow(delta: number): number;
|
|
12612
12636
|
}
|
|
12613
12637
|
|
|
@@ -12616,18 +12640,34 @@ declare namespace WebAssembly {
|
|
|
12616
12640
|
new(descriptor: MemoryDescriptor): Memory;
|
|
12617
12641
|
};
|
|
12618
12642
|
|
|
12619
|
-
/**
|
|
12643
|
+
/**
|
|
12644
|
+
* 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.
|
|
12645
|
+
*
|
|
12646
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
12647
|
+
*/
|
|
12620
12648
|
interface Module {
|
|
12621
12649
|
}
|
|
12622
12650
|
|
|
12623
12651
|
var Module: {
|
|
12624
12652
|
prototype: Module;
|
|
12625
12653
|
new(bytes: BufferSource): Module;
|
|
12626
|
-
/**
|
|
12654
|
+
/**
|
|
12655
|
+
* 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.
|
|
12656
|
+
*
|
|
12657
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
12658
|
+
*/
|
|
12627
12659
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
12628
|
-
/**
|
|
12660
|
+
/**
|
|
12661
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
12662
|
+
*
|
|
12663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
12664
|
+
*/
|
|
12629
12665
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
12630
|
-
/**
|
|
12666
|
+
/**
|
|
12667
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
12668
|
+
*
|
|
12669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
12670
|
+
*/
|
|
12631
12671
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
12632
12672
|
};
|
|
12633
12673
|
|
|
@@ -12640,15 +12680,35 @@ declare namespace WebAssembly {
|
|
|
12640
12680
|
(message?: string): RuntimeError;
|
|
12641
12681
|
};
|
|
12642
12682
|
|
|
12643
|
-
/**
|
|
12683
|
+
/**
|
|
12684
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
12685
|
+
*
|
|
12686
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
12687
|
+
*/
|
|
12644
12688
|
interface Table {
|
|
12645
|
-
/**
|
|
12689
|
+
/**
|
|
12690
|
+
* 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.
|
|
12691
|
+
*
|
|
12692
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
12693
|
+
*/
|
|
12646
12694
|
readonly length: number;
|
|
12647
|
-
/**
|
|
12695
|
+
/**
|
|
12696
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
12697
|
+
*
|
|
12698
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
12699
|
+
*/
|
|
12648
12700
|
get(index: number): any;
|
|
12649
|
-
/**
|
|
12701
|
+
/**
|
|
12702
|
+
* 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.
|
|
12703
|
+
*
|
|
12704
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
12705
|
+
*/
|
|
12650
12706
|
grow(delta: number, value?: any): number;
|
|
12651
|
-
/**
|
|
12707
|
+
/**
|
|
12708
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
12709
|
+
*
|
|
12710
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
12711
|
+
*/
|
|
12652
12712
|
set(index: number, value?: any): void;
|
|
12653
12713
|
}
|
|
12654
12714
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -12572,7 +12572,11 @@ declare namespace WebAssembly {
|
|
|
12572
12572
|
(message?: string): CompileError;
|
|
12573
12573
|
};
|
|
12574
12574
|
|
|
12575
|
-
/**
|
|
12575
|
+
/**
|
|
12576
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
12577
|
+
*
|
|
12578
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12579
|
+
*/
|
|
12576
12580
|
interface Global<T extends ValueType = ValueType> {
|
|
12577
12581
|
value: ValueTypeMap[T];
|
|
12578
12582
|
valueOf(): ValueTypeMap[T];
|
|
@@ -12583,9 +12587,17 @@ declare namespace WebAssembly {
|
|
|
12583
12587
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
12584
12588
|
};
|
|
12585
12589
|
|
|
12586
|
-
/**
|
|
12590
|
+
/**
|
|
12591
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
12592
|
+
*
|
|
12593
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
12594
|
+
*/
|
|
12587
12595
|
interface Instance {
|
|
12588
|
-
/**
|
|
12596
|
+
/**
|
|
12597
|
+
* 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.
|
|
12598
|
+
*
|
|
12599
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
12600
|
+
*/
|
|
12589
12601
|
readonly exports: Exports;
|
|
12590
12602
|
}
|
|
12591
12603
|
|
|
@@ -12603,11 +12615,23 @@ declare namespace WebAssembly {
|
|
|
12603
12615
|
(message?: string): LinkError;
|
|
12604
12616
|
};
|
|
12605
12617
|
|
|
12606
|
-
/**
|
|
12618
|
+
/**
|
|
12619
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
12620
|
+
*
|
|
12621
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
12622
|
+
*/
|
|
12607
12623
|
interface Memory {
|
|
12608
|
-
/**
|
|
12624
|
+
/**
|
|
12625
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
12626
|
+
*
|
|
12627
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
12628
|
+
*/
|
|
12609
12629
|
readonly buffer: ArrayBuffer;
|
|
12610
|
-
/**
|
|
12630
|
+
/**
|
|
12631
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
12632
|
+
*
|
|
12633
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
12634
|
+
*/
|
|
12611
12635
|
grow(delta: number): number;
|
|
12612
12636
|
}
|
|
12613
12637
|
|
|
@@ -12616,18 +12640,34 @@ declare namespace WebAssembly {
|
|
|
12616
12640
|
new(descriptor: MemoryDescriptor): Memory;
|
|
12617
12641
|
};
|
|
12618
12642
|
|
|
12619
|
-
/**
|
|
12643
|
+
/**
|
|
12644
|
+
* 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.
|
|
12645
|
+
*
|
|
12646
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
12647
|
+
*/
|
|
12620
12648
|
interface Module {
|
|
12621
12649
|
}
|
|
12622
12650
|
|
|
12623
12651
|
var Module: {
|
|
12624
12652
|
prototype: Module;
|
|
12625
12653
|
new(bytes: BufferSource): Module;
|
|
12626
|
-
/**
|
|
12654
|
+
/**
|
|
12655
|
+
* 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.
|
|
12656
|
+
*
|
|
12657
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
12658
|
+
*/
|
|
12627
12659
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
12628
|
-
/**
|
|
12660
|
+
/**
|
|
12661
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
12662
|
+
*
|
|
12663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
12664
|
+
*/
|
|
12629
12665
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
12630
|
-
/**
|
|
12666
|
+
/**
|
|
12667
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
12668
|
+
*
|
|
12669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
12670
|
+
*/
|
|
12631
12671
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
12632
12672
|
};
|
|
12633
12673
|
|
|
@@ -12640,15 +12680,35 @@ declare namespace WebAssembly {
|
|
|
12640
12680
|
(message?: string): RuntimeError;
|
|
12641
12681
|
};
|
|
12642
12682
|
|
|
12643
|
-
/**
|
|
12683
|
+
/**
|
|
12684
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
12685
|
+
*
|
|
12686
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
12687
|
+
*/
|
|
12644
12688
|
interface Table {
|
|
12645
|
-
/**
|
|
12689
|
+
/**
|
|
12690
|
+
* 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.
|
|
12691
|
+
*
|
|
12692
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
12693
|
+
*/
|
|
12646
12694
|
readonly length: number;
|
|
12647
|
-
/**
|
|
12695
|
+
/**
|
|
12696
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
12697
|
+
*
|
|
12698
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
12699
|
+
*/
|
|
12648
12700
|
get(index: number): any;
|
|
12649
|
-
/**
|
|
12701
|
+
/**
|
|
12702
|
+
* 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.
|
|
12703
|
+
*
|
|
12704
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
12705
|
+
*/
|
|
12650
12706
|
grow(delta: number, value?: any): number;
|
|
12651
|
-
/**
|
|
12707
|
+
/**
|
|
12708
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
12709
|
+
*
|
|
12710
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
12711
|
+
*/
|
|
12652
12712
|
set(index: number, value?: any): void;
|
|
12653
12713
|
}
|
|
12654
12714
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -12572,7 +12572,11 @@ declare namespace WebAssembly {
|
|
|
12572
12572
|
(message?: string): CompileError;
|
|
12573
12573
|
};
|
|
12574
12574
|
|
|
12575
|
-
/**
|
|
12575
|
+
/**
|
|
12576
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
12577
|
+
*
|
|
12578
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
12579
|
+
*/
|
|
12576
12580
|
interface Global<T extends ValueType = ValueType> {
|
|
12577
12581
|
value: ValueTypeMap[T];
|
|
12578
12582
|
valueOf(): ValueTypeMap[T];
|
|
@@ -12583,9 +12587,17 @@ declare namespace WebAssembly {
|
|
|
12583
12587
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
12584
12588
|
};
|
|
12585
12589
|
|
|
12586
|
-
/**
|
|
12590
|
+
/**
|
|
12591
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
12592
|
+
*
|
|
12593
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
12594
|
+
*/
|
|
12587
12595
|
interface Instance {
|
|
12588
|
-
/**
|
|
12596
|
+
/**
|
|
12597
|
+
* 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.
|
|
12598
|
+
*
|
|
12599
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
12600
|
+
*/
|
|
12589
12601
|
readonly exports: Exports;
|
|
12590
12602
|
}
|
|
12591
12603
|
|
|
@@ -12603,11 +12615,23 @@ declare namespace WebAssembly {
|
|
|
12603
12615
|
(message?: string): LinkError;
|
|
12604
12616
|
};
|
|
12605
12617
|
|
|
12606
|
-
/**
|
|
12618
|
+
/**
|
|
12619
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
12620
|
+
*
|
|
12621
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
12622
|
+
*/
|
|
12607
12623
|
interface Memory {
|
|
12608
|
-
/**
|
|
12624
|
+
/**
|
|
12625
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
12626
|
+
*
|
|
12627
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
12628
|
+
*/
|
|
12609
12629
|
readonly buffer: ArrayBuffer;
|
|
12610
|
-
/**
|
|
12630
|
+
/**
|
|
12631
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
12632
|
+
*
|
|
12633
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
12634
|
+
*/
|
|
12611
12635
|
grow(delta: number): number;
|
|
12612
12636
|
}
|
|
12613
12637
|
|
|
@@ -12616,18 +12640,34 @@ declare namespace WebAssembly {
|
|
|
12616
12640
|
new(descriptor: MemoryDescriptor): Memory;
|
|
12617
12641
|
};
|
|
12618
12642
|
|
|
12619
|
-
/**
|
|
12643
|
+
/**
|
|
12644
|
+
* 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.
|
|
12645
|
+
*
|
|
12646
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
12647
|
+
*/
|
|
12620
12648
|
interface Module {
|
|
12621
12649
|
}
|
|
12622
12650
|
|
|
12623
12651
|
var Module: {
|
|
12624
12652
|
prototype: Module;
|
|
12625
12653
|
new(bytes: BufferSource): Module;
|
|
12626
|
-
/**
|
|
12654
|
+
/**
|
|
12655
|
+
* 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.
|
|
12656
|
+
*
|
|
12657
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
12658
|
+
*/
|
|
12627
12659
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
12628
|
-
/**
|
|
12660
|
+
/**
|
|
12661
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
12662
|
+
*
|
|
12663
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
12664
|
+
*/
|
|
12629
12665
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
12630
|
-
/**
|
|
12666
|
+
/**
|
|
12667
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
12668
|
+
*
|
|
12669
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
12670
|
+
*/
|
|
12631
12671
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
12632
12672
|
};
|
|
12633
12673
|
|
|
@@ -12640,15 +12680,35 @@ declare namespace WebAssembly {
|
|
|
12640
12680
|
(message?: string): RuntimeError;
|
|
12641
12681
|
};
|
|
12642
12682
|
|
|
12643
|
-
/**
|
|
12683
|
+
/**
|
|
12684
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
12685
|
+
*
|
|
12686
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
12687
|
+
*/
|
|
12644
12688
|
interface Table {
|
|
12645
|
-
/**
|
|
12689
|
+
/**
|
|
12690
|
+
* 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.
|
|
12691
|
+
*
|
|
12692
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
12693
|
+
*/
|
|
12646
12694
|
readonly length: number;
|
|
12647
|
-
/**
|
|
12695
|
+
/**
|
|
12696
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
12697
|
+
*
|
|
12698
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
12699
|
+
*/
|
|
12648
12700
|
get(index: number): any;
|
|
12649
|
-
/**
|
|
12701
|
+
/**
|
|
12702
|
+
* 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.
|
|
12703
|
+
*
|
|
12704
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
12705
|
+
*/
|
|
12650
12706
|
grow(delta: number, value?: any): number;
|
|
12651
|
-
/**
|
|
12707
|
+
/**
|
|
12708
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
12709
|
+
*
|
|
12710
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
12711
|
+
*/
|
|
12652
12712
|
set(index: number, value?: any): void;
|
|
12653
12713
|
}
|
|
12654
12714
|
|