@types/sharedworker 0.0.170 → 0.0.171
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
|
@@ -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.171 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.171.
|
package/index.d.ts
CHANGED
|
@@ -10644,7 +10644,11 @@ declare namespace WebAssembly {
|
|
|
10644
10644
|
(message?: string): CompileError;
|
|
10645
10645
|
};
|
|
10646
10646
|
|
|
10647
|
-
/**
|
|
10647
|
+
/**
|
|
10648
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
10649
|
+
*
|
|
10650
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
10651
|
+
*/
|
|
10648
10652
|
interface Global<T extends ValueType = ValueType> {
|
|
10649
10653
|
value: ValueTypeMap[T];
|
|
10650
10654
|
valueOf(): ValueTypeMap[T];
|
|
@@ -10655,9 +10659,17 @@ declare namespace WebAssembly {
|
|
|
10655
10659
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
10656
10660
|
};
|
|
10657
10661
|
|
|
10658
|
-
/**
|
|
10662
|
+
/**
|
|
10663
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
10664
|
+
*
|
|
10665
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
10666
|
+
*/
|
|
10659
10667
|
interface Instance {
|
|
10660
|
-
/**
|
|
10668
|
+
/**
|
|
10669
|
+
* 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.
|
|
10670
|
+
*
|
|
10671
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
10672
|
+
*/
|
|
10661
10673
|
readonly exports: Exports;
|
|
10662
10674
|
}
|
|
10663
10675
|
|
|
@@ -10675,11 +10687,23 @@ declare namespace WebAssembly {
|
|
|
10675
10687
|
(message?: string): LinkError;
|
|
10676
10688
|
};
|
|
10677
10689
|
|
|
10678
|
-
/**
|
|
10690
|
+
/**
|
|
10691
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
10692
|
+
*
|
|
10693
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
10694
|
+
*/
|
|
10679
10695
|
interface Memory {
|
|
10680
|
-
/**
|
|
10696
|
+
/**
|
|
10697
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
10698
|
+
*
|
|
10699
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
10700
|
+
*/
|
|
10681
10701
|
readonly buffer: ArrayBuffer;
|
|
10682
|
-
/**
|
|
10702
|
+
/**
|
|
10703
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
10704
|
+
*
|
|
10705
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
10706
|
+
*/
|
|
10683
10707
|
grow(delta: number): number;
|
|
10684
10708
|
}
|
|
10685
10709
|
|
|
@@ -10688,18 +10712,34 @@ declare namespace WebAssembly {
|
|
|
10688
10712
|
new(descriptor: MemoryDescriptor): Memory;
|
|
10689
10713
|
};
|
|
10690
10714
|
|
|
10691
|
-
/**
|
|
10715
|
+
/**
|
|
10716
|
+
* 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.
|
|
10717
|
+
*
|
|
10718
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
10719
|
+
*/
|
|
10692
10720
|
interface Module {
|
|
10693
10721
|
}
|
|
10694
10722
|
|
|
10695
10723
|
var Module: {
|
|
10696
10724
|
prototype: Module;
|
|
10697
10725
|
new(bytes: BufferSource): Module;
|
|
10698
|
-
/**
|
|
10726
|
+
/**
|
|
10727
|
+
* 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.
|
|
10728
|
+
*
|
|
10729
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
10730
|
+
*/
|
|
10699
10731
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
10700
|
-
/**
|
|
10732
|
+
/**
|
|
10733
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
10734
|
+
*
|
|
10735
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
10736
|
+
*/
|
|
10701
10737
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
10702
|
-
/**
|
|
10738
|
+
/**
|
|
10739
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
10740
|
+
*
|
|
10741
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
10742
|
+
*/
|
|
10703
10743
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
10704
10744
|
};
|
|
10705
10745
|
|
|
@@ -10712,15 +10752,35 @@ declare namespace WebAssembly {
|
|
|
10712
10752
|
(message?: string): RuntimeError;
|
|
10713
10753
|
};
|
|
10714
10754
|
|
|
10715
|
-
/**
|
|
10755
|
+
/**
|
|
10756
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
10757
|
+
*
|
|
10758
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
10759
|
+
*/
|
|
10716
10760
|
interface Table {
|
|
10717
|
-
/**
|
|
10761
|
+
/**
|
|
10762
|
+
* 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.
|
|
10763
|
+
*
|
|
10764
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
10765
|
+
*/
|
|
10718
10766
|
readonly length: number;
|
|
10719
|
-
/**
|
|
10767
|
+
/**
|
|
10768
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
10769
|
+
*
|
|
10770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
10771
|
+
*/
|
|
10720
10772
|
get(index: number): any;
|
|
10721
|
-
/**
|
|
10773
|
+
/**
|
|
10774
|
+
* 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.
|
|
10775
|
+
*
|
|
10776
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
10777
|
+
*/
|
|
10722
10778
|
grow(delta: number, value?: any): number;
|
|
10723
|
-
/**
|
|
10779
|
+
/**
|
|
10780
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
10781
|
+
*
|
|
10782
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
10783
|
+
*/
|
|
10724
10784
|
set(index: number, value?: any): void;
|
|
10725
10785
|
}
|
|
10726
10786
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -10644,7 +10644,11 @@ declare namespace WebAssembly {
|
|
|
10644
10644
|
(message?: string): CompileError;
|
|
10645
10645
|
};
|
|
10646
10646
|
|
|
10647
|
-
/**
|
|
10647
|
+
/**
|
|
10648
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
10649
|
+
*
|
|
10650
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
10651
|
+
*/
|
|
10648
10652
|
interface Global<T extends ValueType = ValueType> {
|
|
10649
10653
|
value: ValueTypeMap[T];
|
|
10650
10654
|
valueOf(): ValueTypeMap[T];
|
|
@@ -10655,9 +10659,17 @@ declare namespace WebAssembly {
|
|
|
10655
10659
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
10656
10660
|
};
|
|
10657
10661
|
|
|
10658
|
-
/**
|
|
10662
|
+
/**
|
|
10663
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
10664
|
+
*
|
|
10665
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
10666
|
+
*/
|
|
10659
10667
|
interface Instance {
|
|
10660
|
-
/**
|
|
10668
|
+
/**
|
|
10669
|
+
* 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.
|
|
10670
|
+
*
|
|
10671
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
10672
|
+
*/
|
|
10661
10673
|
readonly exports: Exports;
|
|
10662
10674
|
}
|
|
10663
10675
|
|
|
@@ -10675,11 +10687,23 @@ declare namespace WebAssembly {
|
|
|
10675
10687
|
(message?: string): LinkError;
|
|
10676
10688
|
};
|
|
10677
10689
|
|
|
10678
|
-
/**
|
|
10690
|
+
/**
|
|
10691
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
10692
|
+
*
|
|
10693
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
10694
|
+
*/
|
|
10679
10695
|
interface Memory {
|
|
10680
|
-
/**
|
|
10696
|
+
/**
|
|
10697
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
10698
|
+
*
|
|
10699
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
10700
|
+
*/
|
|
10681
10701
|
readonly buffer: ArrayBuffer;
|
|
10682
|
-
/**
|
|
10702
|
+
/**
|
|
10703
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
10704
|
+
*
|
|
10705
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
10706
|
+
*/
|
|
10683
10707
|
grow(delta: number): number;
|
|
10684
10708
|
}
|
|
10685
10709
|
|
|
@@ -10688,18 +10712,34 @@ declare namespace WebAssembly {
|
|
|
10688
10712
|
new(descriptor: MemoryDescriptor): Memory;
|
|
10689
10713
|
};
|
|
10690
10714
|
|
|
10691
|
-
/**
|
|
10715
|
+
/**
|
|
10716
|
+
* 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.
|
|
10717
|
+
*
|
|
10718
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
10719
|
+
*/
|
|
10692
10720
|
interface Module {
|
|
10693
10721
|
}
|
|
10694
10722
|
|
|
10695
10723
|
var Module: {
|
|
10696
10724
|
prototype: Module;
|
|
10697
10725
|
new(bytes: BufferSource): Module;
|
|
10698
|
-
/**
|
|
10726
|
+
/**
|
|
10727
|
+
* 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.
|
|
10728
|
+
*
|
|
10729
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
10730
|
+
*/
|
|
10699
10731
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
10700
|
-
/**
|
|
10732
|
+
/**
|
|
10733
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
10734
|
+
*
|
|
10735
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
10736
|
+
*/
|
|
10701
10737
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
10702
|
-
/**
|
|
10738
|
+
/**
|
|
10739
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
10740
|
+
*
|
|
10741
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
10742
|
+
*/
|
|
10703
10743
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
10704
10744
|
};
|
|
10705
10745
|
|
|
@@ -10712,15 +10752,35 @@ declare namespace WebAssembly {
|
|
|
10712
10752
|
(message?: string): RuntimeError;
|
|
10713
10753
|
};
|
|
10714
10754
|
|
|
10715
|
-
/**
|
|
10755
|
+
/**
|
|
10756
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
10757
|
+
*
|
|
10758
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
10759
|
+
*/
|
|
10716
10760
|
interface Table {
|
|
10717
|
-
/**
|
|
10761
|
+
/**
|
|
10762
|
+
* 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.
|
|
10763
|
+
*
|
|
10764
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
10765
|
+
*/
|
|
10718
10766
|
readonly length: number;
|
|
10719
|
-
/**
|
|
10767
|
+
/**
|
|
10768
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
10769
|
+
*
|
|
10770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
10771
|
+
*/
|
|
10720
10772
|
get(index: number): any;
|
|
10721
|
-
/**
|
|
10773
|
+
/**
|
|
10774
|
+
* 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.
|
|
10775
|
+
*
|
|
10776
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
10777
|
+
*/
|
|
10722
10778
|
grow(delta: number, value?: any): number;
|
|
10723
|
-
/**
|
|
10779
|
+
/**
|
|
10780
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
10781
|
+
*
|
|
10782
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
10783
|
+
*/
|
|
10724
10784
|
set(index: number, value?: any): void;
|
|
10725
10785
|
}
|
|
10726
10786
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -10644,7 +10644,11 @@ declare namespace WebAssembly {
|
|
|
10644
10644
|
(message?: string): CompileError;
|
|
10645
10645
|
};
|
|
10646
10646
|
|
|
10647
|
-
/**
|
|
10647
|
+
/**
|
|
10648
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
10649
|
+
*
|
|
10650
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
10651
|
+
*/
|
|
10648
10652
|
interface Global<T extends ValueType = ValueType> {
|
|
10649
10653
|
value: ValueTypeMap[T];
|
|
10650
10654
|
valueOf(): ValueTypeMap[T];
|
|
@@ -10655,9 +10659,17 @@ declare namespace WebAssembly {
|
|
|
10655
10659
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
10656
10660
|
};
|
|
10657
10661
|
|
|
10658
|
-
/**
|
|
10662
|
+
/**
|
|
10663
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
10664
|
+
*
|
|
10665
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
10666
|
+
*/
|
|
10659
10667
|
interface Instance {
|
|
10660
|
-
/**
|
|
10668
|
+
/**
|
|
10669
|
+
* 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.
|
|
10670
|
+
*
|
|
10671
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
10672
|
+
*/
|
|
10661
10673
|
readonly exports: Exports;
|
|
10662
10674
|
}
|
|
10663
10675
|
|
|
@@ -10675,11 +10687,23 @@ declare namespace WebAssembly {
|
|
|
10675
10687
|
(message?: string): LinkError;
|
|
10676
10688
|
};
|
|
10677
10689
|
|
|
10678
|
-
/**
|
|
10690
|
+
/**
|
|
10691
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
10692
|
+
*
|
|
10693
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
10694
|
+
*/
|
|
10679
10695
|
interface Memory {
|
|
10680
|
-
/**
|
|
10696
|
+
/**
|
|
10697
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
10698
|
+
*
|
|
10699
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
10700
|
+
*/
|
|
10681
10701
|
readonly buffer: ArrayBuffer;
|
|
10682
|
-
/**
|
|
10702
|
+
/**
|
|
10703
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
10704
|
+
*
|
|
10705
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
10706
|
+
*/
|
|
10683
10707
|
grow(delta: number): number;
|
|
10684
10708
|
}
|
|
10685
10709
|
|
|
@@ -10688,18 +10712,34 @@ declare namespace WebAssembly {
|
|
|
10688
10712
|
new(descriptor: MemoryDescriptor): Memory;
|
|
10689
10713
|
};
|
|
10690
10714
|
|
|
10691
|
-
/**
|
|
10715
|
+
/**
|
|
10716
|
+
* 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.
|
|
10717
|
+
*
|
|
10718
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
10719
|
+
*/
|
|
10692
10720
|
interface Module {
|
|
10693
10721
|
}
|
|
10694
10722
|
|
|
10695
10723
|
var Module: {
|
|
10696
10724
|
prototype: Module;
|
|
10697
10725
|
new(bytes: BufferSource): Module;
|
|
10698
|
-
/**
|
|
10726
|
+
/**
|
|
10727
|
+
* 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.
|
|
10728
|
+
*
|
|
10729
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
10730
|
+
*/
|
|
10699
10731
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
10700
|
-
/**
|
|
10732
|
+
/**
|
|
10733
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
10734
|
+
*
|
|
10735
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
10736
|
+
*/
|
|
10701
10737
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
10702
|
-
/**
|
|
10738
|
+
/**
|
|
10739
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
10740
|
+
*
|
|
10741
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
10742
|
+
*/
|
|
10703
10743
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
10704
10744
|
};
|
|
10705
10745
|
|
|
@@ -10712,15 +10752,35 @@ declare namespace WebAssembly {
|
|
|
10712
10752
|
(message?: string): RuntimeError;
|
|
10713
10753
|
};
|
|
10714
10754
|
|
|
10715
|
-
/**
|
|
10755
|
+
/**
|
|
10756
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
10757
|
+
*
|
|
10758
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
10759
|
+
*/
|
|
10716
10760
|
interface Table {
|
|
10717
|
-
/**
|
|
10761
|
+
/**
|
|
10762
|
+
* 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.
|
|
10763
|
+
*
|
|
10764
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
10765
|
+
*/
|
|
10718
10766
|
readonly length: number;
|
|
10719
|
-
/**
|
|
10767
|
+
/**
|
|
10768
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
10769
|
+
*
|
|
10770
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
10771
|
+
*/
|
|
10720
10772
|
get(index: number): any;
|
|
10721
|
-
/**
|
|
10773
|
+
/**
|
|
10774
|
+
* 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.
|
|
10775
|
+
*
|
|
10776
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
10777
|
+
*/
|
|
10722
10778
|
grow(delta: number, value?: any): number;
|
|
10723
|
-
/**
|
|
10779
|
+
/**
|
|
10780
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
10781
|
+
*
|
|
10782
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
10783
|
+
*/
|
|
10724
10784
|
set(index: number, value?: any): void;
|
|
10725
10785
|
}
|
|
10726
10786
|
|