Skip to content

Commit b2dcdf3

Browse files
committed
Generate
1 parent b949c43 commit b2dcdf3

15 files changed

+1125
-225
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 75 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,11 @@ declare namespace WebAssembly {
15401540
(message?: string): CompileError;
15411541
};
15421542

1543-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global) */
1543+
/**
1544+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
1545+
*
1546+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
1547+
*/
15441548
interface Global<T extends ValueType = ValueType> {
15451549
value: ValueTypeMap[T];
15461550
valueOf(): ValueTypeMap[T];
@@ -1551,9 +1555,17 @@ declare namespace WebAssembly {
15511555
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
15521556
};
15531557

1554-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance) */
1558+
/**
1559+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
1560+
*
1561+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
1562+
*/
15551563
interface Instance {
1556-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports) */
1564+
/**
1565+
* 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.
1566+
*
1567+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
1568+
*/
15571569
readonly exports: Exports;
15581570
}
15591571

@@ -1571,11 +1583,23 @@ declare namespace WebAssembly {
15711583
(message?: string): LinkError;
15721584
};
15731585

1574-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory) */
1586+
/**
1587+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
1588+
*
1589+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
1590+
*/
15751591
interface Memory {
1576-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */
1592+
/**
1593+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
1594+
*
1595+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
1596+
*/
15771597
readonly buffer: ArrayBuffer;
1578-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */
1598+
/**
1599+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
1600+
*
1601+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
1602+
*/
15791603
grow(delta: number): number;
15801604
}
15811605

@@ -1584,18 +1608,34 @@ declare namespace WebAssembly {
15841608
new(descriptor: MemoryDescriptor): Memory;
15851609
};
15861610

1587-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */
1611+
/**
1612+
* 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.
1613+
*
1614+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
1615+
*/
15881616
interface Module {
15891617
}
15901618

15911619
var Module: {
15921620
prototype: Module;
15931621
new(bytes: BufferSource): Module;
1594-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */
1622+
/**
1623+
* 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.
1624+
*
1625+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
1626+
*/
15951627
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
1596-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */
1628+
/**
1629+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
1630+
*
1631+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
1632+
*/
15971633
exports(moduleObject: Module): ModuleExportDescriptor[];
1598-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static) */
1634+
/**
1635+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
1636+
*
1637+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
1638+
*/
15991639
imports(moduleObject: Module): ModuleImportDescriptor[];
16001640
};
16011641

@@ -1608,15 +1648,35 @@ declare namespace WebAssembly {
16081648
(message?: string): RuntimeError;
16091649
};
16101650

1611-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table) */
1651+
/**
1652+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
1653+
*
1654+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
1655+
*/
16121656
interface Table {
1613-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */
1657+
/**
1658+
* 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.
1659+
*
1660+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
1661+
*/
16141662
readonly length: number;
1615-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */
1663+
/**
1664+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
1665+
*
1666+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
1667+
*/
16161668
get(index: number): any;
1617-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */
1669+
/**
1670+
* 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.
1671+
*
1672+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
1673+
*/
16181674
grow(delta: number, value?: any): number;
1619-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */
1675+
/**
1676+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
1677+
*
1678+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
1679+
*/
16201680
set(index: number, value?: any): void;
16211681
}
16221682

baselines/dom.generated.d.ts

Lines changed: 75 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38086,7 +38086,11 @@ declare namespace WebAssembly {
3808638086
(message?: string): CompileError;
3808738087
};
3808838088

38089-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global) */
38089+
/**
38090+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
38091+
*
38092+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
38093+
*/
3809038094
interface Global<T extends ValueType = ValueType> {
3809138095
value: ValueTypeMap[T];
3809238096
valueOf(): ValueTypeMap[T];
@@ -38097,9 +38101,17 @@ declare namespace WebAssembly {
3809738101
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
3809838102
};
3809938103

38100-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance) */
38104+
/**
38105+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
38106+
*
38107+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
38108+
*/
3810138109
interface Instance {
38102-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports) */
38110+
/**
38111+
* 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.
38112+
*
38113+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
38114+
*/
3810338115
readonly exports: Exports;
3810438116
}
3810538117

@@ -38117,11 +38129,23 @@ declare namespace WebAssembly {
3811738129
(message?: string): LinkError;
3811838130
};
3811938131

38120-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory) */
38132+
/**
38133+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
38134+
*
38135+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
38136+
*/
3812138137
interface Memory {
38122-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer) */
38138+
/**
38139+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
38140+
*
38141+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
38142+
*/
3812338143
readonly buffer: ArrayBuffer;
38124-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow) */
38144+
/**
38145+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
38146+
*
38147+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
38148+
*/
3812538149
grow(delta: number): number;
3812638150
}
3812738151

@@ -38130,18 +38154,34 @@ declare namespace WebAssembly {
3813038154
new(descriptor: MemoryDescriptor): Memory;
3813138155
};
3813238156

38133-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module) */
38157+
/**
38158+
* 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.
38159+
*
38160+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
38161+
*/
3813438162
interface Module {
3813538163
}
3813638164

3813738165
var Module: {
3813838166
prototype: Module;
3813938167
new(bytes: BufferSource): Module;
38140-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static) */
38168+
/**
38169+
* 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.
38170+
*
38171+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
38172+
*/
3814138173
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
38142-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static) */
38174+
/**
38175+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
38176+
*
38177+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
38178+
*/
3814338179
exports(moduleObject: Module): ModuleExportDescriptor[];
38144-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static) */
38180+
/**
38181+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
38182+
*
38183+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
38184+
*/
3814538185
imports(moduleObject: Module): ModuleImportDescriptor[];
3814638186
};
3814738187

@@ -38154,15 +38194,35 @@ declare namespace WebAssembly {
3815438194
(message?: string): RuntimeError;
3815538195
};
3815638196

38157-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table) */
38197+
/**
38198+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
38199+
*
38200+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
38201+
*/
3815838202
interface Table {
38159-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length) */
38203+
/**
38204+
* 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.
38205+
*
38206+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
38207+
*/
3816038208
readonly length: number;
38161-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get) */
38209+
/**
38210+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
38211+
*
38212+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
38213+
*/
3816238214
get(index: number): any;
38163-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow) */
38215+
/**
38216+
* 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.
38217+
*
38218+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
38219+
*/
3816438220
grow(delta: number, value?: any): number;
38165-
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set) */
38221+
/**
38222+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
38223+
*
38224+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
38225+
*/
3816638226
set(index: number, value?: any): void;
3816738227
}
3816838228

0 commit comments

Comments
 (0)