@types/web 0.0.250 → 0.0.251
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 +111 -15
- package/package.json +1 -1
- package/ts5.5/index.d.ts +111 -15
- package/ts5.6/index.d.ts +111 -15
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.251 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.251.
|
package/index.d.ts
CHANGED
|
@@ -55,6 +55,12 @@ interface Algorithm {
|
|
|
55
55
|
name: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
interface AllAcceptedCredentialsOptions {
|
|
59
|
+
allAcceptedCredentialIds: Base64URLString[];
|
|
60
|
+
rpId: string;
|
|
61
|
+
userId: Base64URLString;
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
interface AnalyserOptions extends AudioNodeOptions {
|
|
59
65
|
fftSize?: number;
|
|
60
66
|
maxDecibels?: number;
|
|
@@ -465,6 +471,13 @@ interface CryptoKeyPair {
|
|
|
465
471
|
publicKey: CryptoKey;
|
|
466
472
|
}
|
|
467
473
|
|
|
474
|
+
interface CurrentUserDetailsOptions {
|
|
475
|
+
displayName: string;
|
|
476
|
+
name: string;
|
|
477
|
+
rpId: string;
|
|
478
|
+
userId: Base64URLString;
|
|
479
|
+
}
|
|
480
|
+
|
|
468
481
|
interface CustomEventInit<T = any> extends EventInit {
|
|
469
482
|
detail?: T;
|
|
470
483
|
}
|
|
@@ -2388,6 +2401,11 @@ interface UnderlyingSource<R = any> {
|
|
|
2388
2401
|
type?: ReadableStreamType;
|
|
2389
2402
|
}
|
|
2390
2403
|
|
|
2404
|
+
interface UnknownCredentialOptions {
|
|
2405
|
+
credentialId: Base64URLString;
|
|
2406
|
+
rpId: string;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2391
2409
|
interface ValidityStateFlags {
|
|
2392
2410
|
badInput?: boolean;
|
|
2393
2411
|
customError?: boolean;
|
|
@@ -24571,6 +24589,24 @@ declare var PublicKeyCredential: {
|
|
|
24571
24589
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
|
|
24572
24590
|
*/
|
|
24573
24591
|
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
|
|
24592
|
+
/**
|
|
24593
|
+
* The **`signalAllAcceptedCredentials()`** static method of the PublicKeyCredential interface signals to the authenticator all of the valid credential IDs that the relying party (RP) server still holds for a particular user.
|
|
24594
|
+
*
|
|
24595
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalAllAcceptedCredentials_static)
|
|
24596
|
+
*/
|
|
24597
|
+
signalAllAcceptedCredentials(options: AllAcceptedCredentialsOptions): Promise<void>;
|
|
24598
|
+
/**
|
|
24599
|
+
* The **`signalCurrentUserDetails()`** static method of the PublicKeyCredential interface signals to the authenticator that a particular user has updated their user name and/or display name on the relying party (RP) server.
|
|
24600
|
+
*
|
|
24601
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalCurrentUserDetails_static)
|
|
24602
|
+
*/
|
|
24603
|
+
signalCurrentUserDetails(options: CurrentUserDetailsOptions): Promise<void>;
|
|
24604
|
+
/**
|
|
24605
|
+
* The **`signalUnknownCredential()`** static method of the PublicKeyCredential interface signals to the authenticator that a credential ID was not recognized by the relying party (RP) server.
|
|
24606
|
+
*
|
|
24607
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalUnknownCredential_static)
|
|
24608
|
+
*/
|
|
24609
|
+
signalUnknownCredential(options: UnknownCredentialOptions): Promise<void>;
|
|
24574
24610
|
};
|
|
24575
24611
|
|
|
24576
24612
|
/**
|
|
@@ -38089,7 +38125,11 @@ declare namespace WebAssembly {
|
|
|
38089
38125
|
(message?: string): CompileError;
|
|
38090
38126
|
};
|
|
38091
38127
|
|
|
38092
|
-
/**
|
|
38128
|
+
/**
|
|
38129
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
38130
|
+
*
|
|
38131
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
38132
|
+
*/
|
|
38093
38133
|
interface Global<T extends ValueType = ValueType> {
|
|
38094
38134
|
value: ValueTypeMap[T];
|
|
38095
38135
|
valueOf(): ValueTypeMap[T];
|
|
@@ -38100,9 +38140,17 @@ declare namespace WebAssembly {
|
|
|
38100
38140
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
38101
38141
|
};
|
|
38102
38142
|
|
|
38103
|
-
/**
|
|
38143
|
+
/**
|
|
38144
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
38145
|
+
*
|
|
38146
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
38147
|
+
*/
|
|
38104
38148
|
interface Instance {
|
|
38105
|
-
/**
|
|
38149
|
+
/**
|
|
38150
|
+
* 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.
|
|
38151
|
+
*
|
|
38152
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
38153
|
+
*/
|
|
38106
38154
|
readonly exports: Exports;
|
|
38107
38155
|
}
|
|
38108
38156
|
|
|
@@ -38120,11 +38168,23 @@ declare namespace WebAssembly {
|
|
|
38120
38168
|
(message?: string): LinkError;
|
|
38121
38169
|
};
|
|
38122
38170
|
|
|
38123
|
-
/**
|
|
38171
|
+
/**
|
|
38172
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
38173
|
+
*
|
|
38174
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
38175
|
+
*/
|
|
38124
38176
|
interface Memory {
|
|
38125
|
-
/**
|
|
38177
|
+
/**
|
|
38178
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
38179
|
+
*
|
|
38180
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
38181
|
+
*/
|
|
38126
38182
|
readonly buffer: ArrayBuffer;
|
|
38127
|
-
/**
|
|
38183
|
+
/**
|
|
38184
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
38185
|
+
*
|
|
38186
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
38187
|
+
*/
|
|
38128
38188
|
grow(delta: number): number;
|
|
38129
38189
|
}
|
|
38130
38190
|
|
|
@@ -38133,18 +38193,34 @@ declare namespace WebAssembly {
|
|
|
38133
38193
|
new(descriptor: MemoryDescriptor): Memory;
|
|
38134
38194
|
};
|
|
38135
38195
|
|
|
38136
|
-
/**
|
|
38196
|
+
/**
|
|
38197
|
+
* 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.
|
|
38198
|
+
*
|
|
38199
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
38200
|
+
*/
|
|
38137
38201
|
interface Module {
|
|
38138
38202
|
}
|
|
38139
38203
|
|
|
38140
38204
|
var Module: {
|
|
38141
38205
|
prototype: Module;
|
|
38142
38206
|
new(bytes: BufferSource): Module;
|
|
38143
|
-
/**
|
|
38207
|
+
/**
|
|
38208
|
+
* 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.
|
|
38209
|
+
*
|
|
38210
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
38211
|
+
*/
|
|
38144
38212
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
38145
|
-
/**
|
|
38213
|
+
/**
|
|
38214
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
38215
|
+
*
|
|
38216
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
38217
|
+
*/
|
|
38146
38218
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
38147
|
-
/**
|
|
38219
|
+
/**
|
|
38220
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
38221
|
+
*
|
|
38222
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
38223
|
+
*/
|
|
38148
38224
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
38149
38225
|
};
|
|
38150
38226
|
|
|
@@ -38157,15 +38233,35 @@ declare namespace WebAssembly {
|
|
|
38157
38233
|
(message?: string): RuntimeError;
|
|
38158
38234
|
};
|
|
38159
38235
|
|
|
38160
|
-
/**
|
|
38236
|
+
/**
|
|
38237
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
38238
|
+
*
|
|
38239
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
38240
|
+
*/
|
|
38161
38241
|
interface Table {
|
|
38162
|
-
/**
|
|
38242
|
+
/**
|
|
38243
|
+
* 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.
|
|
38244
|
+
*
|
|
38245
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
38246
|
+
*/
|
|
38163
38247
|
readonly length: number;
|
|
38164
|
-
/**
|
|
38248
|
+
/**
|
|
38249
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
38250
|
+
*
|
|
38251
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
38252
|
+
*/
|
|
38165
38253
|
get(index: number): any;
|
|
38166
|
-
/**
|
|
38254
|
+
/**
|
|
38255
|
+
* 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.
|
|
38256
|
+
*
|
|
38257
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
38258
|
+
*/
|
|
38167
38259
|
grow(delta: number, value?: any): number;
|
|
38168
|
-
/**
|
|
38260
|
+
/**
|
|
38261
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
38262
|
+
*
|
|
38263
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
38264
|
+
*/
|
|
38169
38265
|
set(index: number, value?: any): void;
|
|
38170
38266
|
}
|
|
38171
38267
|
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -55,6 +55,12 @@ interface Algorithm {
|
|
|
55
55
|
name: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
interface AllAcceptedCredentialsOptions {
|
|
59
|
+
allAcceptedCredentialIds: Base64URLString[];
|
|
60
|
+
rpId: string;
|
|
61
|
+
userId: Base64URLString;
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
interface AnalyserOptions extends AudioNodeOptions {
|
|
59
65
|
fftSize?: number;
|
|
60
66
|
maxDecibels?: number;
|
|
@@ -465,6 +471,13 @@ interface CryptoKeyPair {
|
|
|
465
471
|
publicKey: CryptoKey;
|
|
466
472
|
}
|
|
467
473
|
|
|
474
|
+
interface CurrentUserDetailsOptions {
|
|
475
|
+
displayName: string;
|
|
476
|
+
name: string;
|
|
477
|
+
rpId: string;
|
|
478
|
+
userId: Base64URLString;
|
|
479
|
+
}
|
|
480
|
+
|
|
468
481
|
interface CustomEventInit<T = any> extends EventInit {
|
|
469
482
|
detail?: T;
|
|
470
483
|
}
|
|
@@ -2388,6 +2401,11 @@ interface UnderlyingSource<R = any> {
|
|
|
2388
2401
|
type?: ReadableStreamType;
|
|
2389
2402
|
}
|
|
2390
2403
|
|
|
2404
|
+
interface UnknownCredentialOptions {
|
|
2405
|
+
credentialId: Base64URLString;
|
|
2406
|
+
rpId: string;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2391
2409
|
interface ValidityStateFlags {
|
|
2392
2410
|
badInput?: boolean;
|
|
2393
2411
|
customError?: boolean;
|
|
@@ -24550,6 +24568,24 @@ declare var PublicKeyCredential: {
|
|
|
24550
24568
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
|
|
24551
24569
|
*/
|
|
24552
24570
|
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
|
|
24571
|
+
/**
|
|
24572
|
+
* The **`signalAllAcceptedCredentials()`** static method of the PublicKeyCredential interface signals to the authenticator all of the valid credential IDs that the relying party (RP) server still holds for a particular user.
|
|
24573
|
+
*
|
|
24574
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalAllAcceptedCredentials_static)
|
|
24575
|
+
*/
|
|
24576
|
+
signalAllAcceptedCredentials(options: AllAcceptedCredentialsOptions): Promise<void>;
|
|
24577
|
+
/**
|
|
24578
|
+
* The **`signalCurrentUserDetails()`** static method of the PublicKeyCredential interface signals to the authenticator that a particular user has updated their user name and/or display name on the relying party (RP) server.
|
|
24579
|
+
*
|
|
24580
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalCurrentUserDetails_static)
|
|
24581
|
+
*/
|
|
24582
|
+
signalCurrentUserDetails(options: CurrentUserDetailsOptions): Promise<void>;
|
|
24583
|
+
/**
|
|
24584
|
+
* The **`signalUnknownCredential()`** static method of the PublicKeyCredential interface signals to the authenticator that a credential ID was not recognized by the relying party (RP) server.
|
|
24585
|
+
*
|
|
24586
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalUnknownCredential_static)
|
|
24587
|
+
*/
|
|
24588
|
+
signalUnknownCredential(options: UnknownCredentialOptions): Promise<void>;
|
|
24553
24589
|
};
|
|
24554
24590
|
|
|
24555
24591
|
/**
|
|
@@ -38066,7 +38102,11 @@ declare namespace WebAssembly {
|
|
|
38066
38102
|
(message?: string): CompileError;
|
|
38067
38103
|
};
|
|
38068
38104
|
|
|
38069
|
-
/**
|
|
38105
|
+
/**
|
|
38106
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
38107
|
+
*
|
|
38108
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
38109
|
+
*/
|
|
38070
38110
|
interface Global<T extends ValueType = ValueType> {
|
|
38071
38111
|
value: ValueTypeMap[T];
|
|
38072
38112
|
valueOf(): ValueTypeMap[T];
|
|
@@ -38077,9 +38117,17 @@ declare namespace WebAssembly {
|
|
|
38077
38117
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
38078
38118
|
};
|
|
38079
38119
|
|
|
38080
|
-
/**
|
|
38120
|
+
/**
|
|
38121
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
38122
|
+
*
|
|
38123
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
38124
|
+
*/
|
|
38081
38125
|
interface Instance {
|
|
38082
|
-
/**
|
|
38126
|
+
/**
|
|
38127
|
+
* 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.
|
|
38128
|
+
*
|
|
38129
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
38130
|
+
*/
|
|
38083
38131
|
readonly exports: Exports;
|
|
38084
38132
|
}
|
|
38085
38133
|
|
|
@@ -38097,11 +38145,23 @@ declare namespace WebAssembly {
|
|
|
38097
38145
|
(message?: string): LinkError;
|
|
38098
38146
|
};
|
|
38099
38147
|
|
|
38100
|
-
/**
|
|
38148
|
+
/**
|
|
38149
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
38150
|
+
*
|
|
38151
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
38152
|
+
*/
|
|
38101
38153
|
interface Memory {
|
|
38102
|
-
/**
|
|
38154
|
+
/**
|
|
38155
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
38156
|
+
*
|
|
38157
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
38158
|
+
*/
|
|
38103
38159
|
readonly buffer: ArrayBuffer;
|
|
38104
|
-
/**
|
|
38160
|
+
/**
|
|
38161
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
38162
|
+
*
|
|
38163
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
38164
|
+
*/
|
|
38105
38165
|
grow(delta: number): number;
|
|
38106
38166
|
}
|
|
38107
38167
|
|
|
@@ -38110,18 +38170,34 @@ declare namespace WebAssembly {
|
|
|
38110
38170
|
new(descriptor: MemoryDescriptor): Memory;
|
|
38111
38171
|
};
|
|
38112
38172
|
|
|
38113
|
-
/**
|
|
38173
|
+
/**
|
|
38174
|
+
* 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.
|
|
38175
|
+
*
|
|
38176
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
38177
|
+
*/
|
|
38114
38178
|
interface Module {
|
|
38115
38179
|
}
|
|
38116
38180
|
|
|
38117
38181
|
var Module: {
|
|
38118
38182
|
prototype: Module;
|
|
38119
38183
|
new(bytes: BufferSource): Module;
|
|
38120
|
-
/**
|
|
38184
|
+
/**
|
|
38185
|
+
* 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.
|
|
38186
|
+
*
|
|
38187
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
38188
|
+
*/
|
|
38121
38189
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
38122
|
-
/**
|
|
38190
|
+
/**
|
|
38191
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
38192
|
+
*
|
|
38193
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
38194
|
+
*/
|
|
38123
38195
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
38124
|
-
/**
|
|
38196
|
+
/**
|
|
38197
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
38198
|
+
*
|
|
38199
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
38200
|
+
*/
|
|
38125
38201
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
38126
38202
|
};
|
|
38127
38203
|
|
|
@@ -38134,15 +38210,35 @@ declare namespace WebAssembly {
|
|
|
38134
38210
|
(message?: string): RuntimeError;
|
|
38135
38211
|
};
|
|
38136
38212
|
|
|
38137
|
-
/**
|
|
38213
|
+
/**
|
|
38214
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
38215
|
+
*
|
|
38216
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
38217
|
+
*/
|
|
38138
38218
|
interface Table {
|
|
38139
|
-
/**
|
|
38219
|
+
/**
|
|
38220
|
+
* 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.
|
|
38221
|
+
*
|
|
38222
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
38223
|
+
*/
|
|
38140
38224
|
readonly length: number;
|
|
38141
|
-
/**
|
|
38225
|
+
/**
|
|
38226
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
38227
|
+
*
|
|
38228
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
38229
|
+
*/
|
|
38142
38230
|
get(index: number): any;
|
|
38143
|
-
/**
|
|
38231
|
+
/**
|
|
38232
|
+
* 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.
|
|
38233
|
+
*
|
|
38234
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
38235
|
+
*/
|
|
38144
38236
|
grow(delta: number, value?: any): number;
|
|
38145
|
-
/**
|
|
38237
|
+
/**
|
|
38238
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
38239
|
+
*
|
|
38240
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
38241
|
+
*/
|
|
38146
38242
|
set(index: number, value?: any): void;
|
|
38147
38243
|
}
|
|
38148
38244
|
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -55,6 +55,12 @@ interface Algorithm {
|
|
|
55
55
|
name: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
interface AllAcceptedCredentialsOptions {
|
|
59
|
+
allAcceptedCredentialIds: Base64URLString[];
|
|
60
|
+
rpId: string;
|
|
61
|
+
userId: Base64URLString;
|
|
62
|
+
}
|
|
63
|
+
|
|
58
64
|
interface AnalyserOptions extends AudioNodeOptions {
|
|
59
65
|
fftSize?: number;
|
|
60
66
|
maxDecibels?: number;
|
|
@@ -465,6 +471,13 @@ interface CryptoKeyPair {
|
|
|
465
471
|
publicKey: CryptoKey;
|
|
466
472
|
}
|
|
467
473
|
|
|
474
|
+
interface CurrentUserDetailsOptions {
|
|
475
|
+
displayName: string;
|
|
476
|
+
name: string;
|
|
477
|
+
rpId: string;
|
|
478
|
+
userId: Base64URLString;
|
|
479
|
+
}
|
|
480
|
+
|
|
468
481
|
interface CustomEventInit<T = any> extends EventInit {
|
|
469
482
|
detail?: T;
|
|
470
483
|
}
|
|
@@ -2388,6 +2401,11 @@ interface UnderlyingSource<R = any> {
|
|
|
2388
2401
|
type?: ReadableStreamType;
|
|
2389
2402
|
}
|
|
2390
2403
|
|
|
2404
|
+
interface UnknownCredentialOptions {
|
|
2405
|
+
credentialId: Base64URLString;
|
|
2406
|
+
rpId: string;
|
|
2407
|
+
}
|
|
2408
|
+
|
|
2391
2409
|
interface ValidityStateFlags {
|
|
2392
2410
|
badInput?: boolean;
|
|
2393
2411
|
customError?: boolean;
|
|
@@ -24571,6 +24589,24 @@ declare var PublicKeyCredential: {
|
|
|
24571
24589
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static)
|
|
24572
24590
|
*/
|
|
24573
24591
|
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
|
|
24592
|
+
/**
|
|
24593
|
+
* The **`signalAllAcceptedCredentials()`** static method of the PublicKeyCredential interface signals to the authenticator all of the valid credential IDs that the relying party (RP) server still holds for a particular user.
|
|
24594
|
+
*
|
|
24595
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalAllAcceptedCredentials_static)
|
|
24596
|
+
*/
|
|
24597
|
+
signalAllAcceptedCredentials(options: AllAcceptedCredentialsOptions): Promise<void>;
|
|
24598
|
+
/**
|
|
24599
|
+
* The **`signalCurrentUserDetails()`** static method of the PublicKeyCredential interface signals to the authenticator that a particular user has updated their user name and/or display name on the relying party (RP) server.
|
|
24600
|
+
*
|
|
24601
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalCurrentUserDetails_static)
|
|
24602
|
+
*/
|
|
24603
|
+
signalCurrentUserDetails(options: CurrentUserDetailsOptions): Promise<void>;
|
|
24604
|
+
/**
|
|
24605
|
+
* The **`signalUnknownCredential()`** static method of the PublicKeyCredential interface signals to the authenticator that a credential ID was not recognized by the relying party (RP) server.
|
|
24606
|
+
*
|
|
24607
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/signalUnknownCredential_static)
|
|
24608
|
+
*/
|
|
24609
|
+
signalUnknownCredential(options: UnknownCredentialOptions): Promise<void>;
|
|
24574
24610
|
};
|
|
24575
24611
|
|
|
24576
24612
|
/**
|
|
@@ -38089,7 +38125,11 @@ declare namespace WebAssembly {
|
|
|
38089
38125
|
(message?: string): CompileError;
|
|
38090
38126
|
};
|
|
38091
38127
|
|
|
38092
|
-
/**
|
|
38128
|
+
/**
|
|
38129
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
38130
|
+
*
|
|
38131
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
38132
|
+
*/
|
|
38093
38133
|
interface Global<T extends ValueType = ValueType> {
|
|
38094
38134
|
value: ValueTypeMap[T];
|
|
38095
38135
|
valueOf(): ValueTypeMap[T];
|
|
@@ -38100,9 +38140,17 @@ declare namespace WebAssembly {
|
|
|
38100
38140
|
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
|
|
38101
38141
|
};
|
|
38102
38142
|
|
|
38103
|
-
/**
|
|
38143
|
+
/**
|
|
38144
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a `WebAssembly.Module`.
|
|
38145
|
+
*
|
|
38146
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
38147
|
+
*/
|
|
38104
38148
|
interface Instance {
|
|
38105
|
-
/**
|
|
38149
|
+
/**
|
|
38150
|
+
* 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.
|
|
38151
|
+
*
|
|
38152
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
38153
|
+
*/
|
|
38106
38154
|
readonly exports: Exports;
|
|
38107
38155
|
}
|
|
38108
38156
|
|
|
@@ -38120,11 +38168,23 @@ declare namespace WebAssembly {
|
|
|
38120
38168
|
(message?: string): LinkError;
|
|
38121
38169
|
};
|
|
38122
38170
|
|
|
38123
|
-
/**
|
|
38171
|
+
/**
|
|
38172
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a `WebAssembly.Instance`.
|
|
38173
|
+
*
|
|
38174
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
38175
|
+
*/
|
|
38124
38176
|
interface Memory {
|
|
38125
|
-
/**
|
|
38177
|
+
/**
|
|
38178
|
+
* The read-only **`buffer`** prototype property of the `WebAssembly.Memory` object returns the buffer contained in the memory.
|
|
38179
|
+
*
|
|
38180
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
38181
|
+
*/
|
|
38126
38182
|
readonly buffer: ArrayBuffer;
|
|
38127
|
-
/**
|
|
38183
|
+
/**
|
|
38184
|
+
* The **`grow()`** prototype method of the `WebAssembly.Memory` object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
38185
|
+
*
|
|
38186
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
38187
|
+
*/
|
|
38128
38188
|
grow(delta: number): number;
|
|
38129
38189
|
}
|
|
38130
38190
|
|
|
@@ -38133,18 +38193,34 @@ declare namespace WebAssembly {
|
|
|
38133
38193
|
new(descriptor: MemoryDescriptor): Memory;
|
|
38134
38194
|
};
|
|
38135
38195
|
|
|
38136
|
-
/**
|
|
38196
|
+
/**
|
|
38197
|
+
* 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.
|
|
38198
|
+
*
|
|
38199
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module)
|
|
38200
|
+
*/
|
|
38137
38201
|
interface Module {
|
|
38138
38202
|
}
|
|
38139
38203
|
|
|
38140
38204
|
var Module: {
|
|
38141
38205
|
prototype: Module;
|
|
38142
38206
|
new(bytes: BufferSource): Module;
|
|
38143
|
-
/**
|
|
38207
|
+
/**
|
|
38208
|
+
* 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.
|
|
38209
|
+
*
|
|
38210
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
38211
|
+
*/
|
|
38144
38212
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
38145
|
-
/**
|
|
38213
|
+
/**
|
|
38214
|
+
* The **`WebAssembly.Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given `Module`.
|
|
38215
|
+
*
|
|
38216
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
38217
|
+
*/
|
|
38146
38218
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
38147
|
-
/**
|
|
38219
|
+
/**
|
|
38220
|
+
* The **`WebAssembly.Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given `Module`.
|
|
38221
|
+
*
|
|
38222
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
38223
|
+
*/
|
|
38148
38224
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
38149
38225
|
};
|
|
38150
38226
|
|
|
@@ -38157,15 +38233,35 @@ declare namespace WebAssembly {
|
|
|
38157
38233
|
(message?: string): RuntimeError;
|
|
38158
38234
|
};
|
|
38159
38235
|
|
|
38160
|
-
/**
|
|
38236
|
+
/**
|
|
38237
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
38238
|
+
*
|
|
38239
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
38240
|
+
*/
|
|
38161
38241
|
interface Table {
|
|
38162
|
-
/**
|
|
38242
|
+
/**
|
|
38243
|
+
* 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.
|
|
38244
|
+
*
|
|
38245
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
38246
|
+
*/
|
|
38163
38247
|
readonly length: number;
|
|
38164
|
-
/**
|
|
38248
|
+
/**
|
|
38249
|
+
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
38250
|
+
*
|
|
38251
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
38252
|
+
*/
|
|
38165
38253
|
get(index: number): any;
|
|
38166
|
-
/**
|
|
38254
|
+
/**
|
|
38255
|
+
* 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.
|
|
38256
|
+
*
|
|
38257
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
38258
|
+
*/
|
|
38167
38259
|
grow(delta: number, value?: any): number;
|
|
38168
|
-
/**
|
|
38260
|
+
/**
|
|
38261
|
+
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
38262
|
+
*
|
|
38263
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
38264
|
+
*/
|
|
38169
38265
|
set(index: number, value?: any): void;
|
|
38170
38266
|
}
|
|
38171
38267
|
|