@types/serviceworker 0.0.156 → 0.0.158
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 +88 -26
- package/package.json +1 -1
- package/ts5.5/asynciterable.d.ts +3 -3
- package/ts5.5/index.d.ts +85 -23
- package/ts5.6/asynciterable.d.ts +3 -3
- package/ts5.6/index.d.ts +85 -23
- package/ts5.9/asynciterable.d.ts +3 -3
- package/ts5.9/index.d.ts +85 -23
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.158 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.158.
|
package/index.d.ts
CHANGED
|
@@ -6247,6 +6247,12 @@ declare var PushManager: {
|
|
|
6247
6247
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
6248
6248
|
};
|
|
6249
6249
|
|
|
6250
|
+
/** Available only in secure contexts. */
|
|
6251
|
+
interface PushManagerAttribute {
|
|
6252
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
6253
|
+
readonly pushManager: PushManager;
|
|
6254
|
+
}
|
|
6255
|
+
|
|
6250
6256
|
/**
|
|
6251
6257
|
* The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
|
|
6252
6258
|
* Available only in secure contexts.
|
|
@@ -7116,7 +7122,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7116
7122
|
*
|
|
7117
7123
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7118
7124
|
*/
|
|
7119
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7125
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7120
7126
|
/**
|
|
7121
7127
|
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`.
|
|
7122
7128
|
*
|
|
@@ -7143,12 +7149,6 @@ interface ServiceWorkerRegistration extends EventTarget {
|
|
|
7143
7149
|
readonly navigationPreload: NavigationPreloadManager;
|
|
7144
7150
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
|
|
7145
7151
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
7146
|
-
/**
|
|
7147
|
-
* The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
|
|
7148
|
-
*
|
|
7149
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
|
|
7150
|
-
*/
|
|
7151
|
-
readonly pushManager: PushManager;
|
|
7152
7152
|
/**
|
|
7153
7153
|
* The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
|
|
7154
7154
|
*
|
|
@@ -11055,6 +11055,37 @@ declare namespace WebAssembly {
|
|
|
11055
11055
|
(message?: string): CompileError;
|
|
11056
11056
|
};
|
|
11057
11057
|
|
|
11058
|
+
/**
|
|
11059
|
+
* The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
|
|
11060
|
+
*
|
|
11061
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
|
|
11062
|
+
*/
|
|
11063
|
+
interface Exception {
|
|
11064
|
+
/**
|
|
11065
|
+
* The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
|
|
11066
|
+
*
|
|
11067
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
|
|
11068
|
+
*/
|
|
11069
|
+
readonly stack: string | undefined;
|
|
11070
|
+
/**
|
|
11071
|
+
* The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
|
|
11072
|
+
*
|
|
11073
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
11074
|
+
*/
|
|
11075
|
+
getArg(index: number): any;
|
|
11076
|
+
/**
|
|
11077
|
+
* The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
|
|
11078
|
+
*
|
|
11079
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
|
|
11080
|
+
*/
|
|
11081
|
+
is(exceptionTag: Tag): boolean;
|
|
11082
|
+
}
|
|
11083
|
+
|
|
11084
|
+
var Exception: {
|
|
11085
|
+
prototype: Exception;
|
|
11086
|
+
new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
|
|
11087
|
+
};
|
|
11088
|
+
|
|
11058
11089
|
/**
|
|
11059
11090
|
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
11060
11091
|
*
|
|
@@ -11115,7 +11146,7 @@ declare namespace WebAssembly {
|
|
|
11115
11146
|
*
|
|
11116
11147
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
11117
11148
|
*/
|
|
11118
|
-
grow(delta:
|
|
11149
|
+
grow(delta: AddressValue): AddressValue;
|
|
11119
11150
|
}
|
|
11120
11151
|
|
|
11121
11152
|
var Memory: {
|
|
@@ -11133,7 +11164,7 @@ declare namespace WebAssembly {
|
|
|
11133
11164
|
|
|
11134
11165
|
var Module: {
|
|
11135
11166
|
prototype: Module;
|
|
11136
|
-
new(bytes: BufferSource): Module;
|
|
11167
|
+
new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
11137
11168
|
/**
|
|
11138
11169
|
* 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.
|
|
11139
11170
|
*
|
|
@@ -11174,25 +11205,25 @@ declare namespace WebAssembly {
|
|
|
11174
11205
|
*
|
|
11175
11206
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
11176
11207
|
*/
|
|
11177
|
-
readonly length:
|
|
11208
|
+
readonly length: AddressValue;
|
|
11178
11209
|
/**
|
|
11179
11210
|
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
11180
11211
|
*
|
|
11181
11212
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
11182
11213
|
*/
|
|
11183
|
-
get(index:
|
|
11214
|
+
get(index: AddressValue): any;
|
|
11184
11215
|
/**
|
|
11185
11216
|
* 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.
|
|
11186
11217
|
*
|
|
11187
11218
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
11188
11219
|
*/
|
|
11189
|
-
grow(delta:
|
|
11220
|
+
grow(delta: AddressValue, value?: any): AddressValue;
|
|
11190
11221
|
/**
|
|
11191
11222
|
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
11192
11223
|
*
|
|
11193
11224
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
11194
11225
|
*/
|
|
11195
|
-
set(index:
|
|
11226
|
+
set(index: AddressValue, value?: any): void;
|
|
11196
11227
|
}
|
|
11197
11228
|
|
|
11198
11229
|
var Table: {
|
|
@@ -11200,14 +11231,32 @@ declare namespace WebAssembly {
|
|
|
11200
11231
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
11201
11232
|
};
|
|
11202
11233
|
|
|
11234
|
+
/**
|
|
11235
|
+
* The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
|
|
11236
|
+
*
|
|
11237
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
|
|
11238
|
+
*/
|
|
11239
|
+
interface Tag {
|
|
11240
|
+
}
|
|
11241
|
+
|
|
11242
|
+
var Tag: {
|
|
11243
|
+
prototype: Tag;
|
|
11244
|
+
new(type: TagType): Tag;
|
|
11245
|
+
};
|
|
11246
|
+
|
|
11247
|
+
interface ExceptionOptions {
|
|
11248
|
+
traceStack?: boolean;
|
|
11249
|
+
}
|
|
11250
|
+
|
|
11203
11251
|
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
|
11204
11252
|
mutable?: boolean;
|
|
11205
11253
|
value: T;
|
|
11206
11254
|
}
|
|
11207
11255
|
|
|
11208
11256
|
interface MemoryDescriptor {
|
|
11209
|
-
|
|
11210
|
-
|
|
11257
|
+
address?: AddressType;
|
|
11258
|
+
initial: AddressValue;
|
|
11259
|
+
maximum?: AddressValue;
|
|
11211
11260
|
shared?: boolean;
|
|
11212
11261
|
}
|
|
11213
11262
|
|
|
@@ -11223,9 +11272,14 @@ declare namespace WebAssembly {
|
|
|
11223
11272
|
}
|
|
11224
11273
|
|
|
11225
11274
|
interface TableDescriptor {
|
|
11275
|
+
address?: AddressType;
|
|
11226
11276
|
element: TableKind;
|
|
11227
|
-
initial:
|
|
11228
|
-
maximum?:
|
|
11277
|
+
initial: AddressValue;
|
|
11278
|
+
maximum?: AddressValue;
|
|
11279
|
+
}
|
|
11280
|
+
|
|
11281
|
+
interface TagType {
|
|
11282
|
+
parameters: ValueType[];
|
|
11229
11283
|
}
|
|
11230
11284
|
|
|
11231
11285
|
interface ValueTypeMap {
|
|
@@ -11238,30 +11292,38 @@ declare namespace WebAssembly {
|
|
|
11238
11292
|
v128: never;
|
|
11239
11293
|
}
|
|
11240
11294
|
|
|
11295
|
+
interface WebAssemblyCompileOptions {
|
|
11296
|
+
builtins?: string[];
|
|
11297
|
+
importedStringConstants?: string | null;
|
|
11298
|
+
}
|
|
11299
|
+
|
|
11241
11300
|
interface WebAssemblyInstantiatedSource {
|
|
11242
11301
|
instance: Instance;
|
|
11243
11302
|
module: Module;
|
|
11244
11303
|
}
|
|
11245
11304
|
|
|
11246
|
-
type
|
|
11305
|
+
type AddressType = "i32" | "i64";
|
|
11306
|
+
type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
|
|
11247
11307
|
type TableKind = "anyfunc" | "externref";
|
|
11308
|
+
type AddressValue = number;
|
|
11248
11309
|
type ExportValue = Function | Global | Memory | Table;
|
|
11249
11310
|
type Exports = Record<string, ExportValue>;
|
|
11250
11311
|
type ImportValue = ExportValue | number;
|
|
11251
11312
|
type Imports = Record<string, ModuleImports>;
|
|
11252
11313
|
type ModuleImports = Record<string, ImportValue>;
|
|
11253
11314
|
type ValueType = keyof ValueTypeMap;
|
|
11315
|
+
var JSTag: Tag;
|
|
11254
11316
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
11255
|
-
function compile(bytes: BufferSource): Promise<Module>;
|
|
11317
|
+
function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11256
11318
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
11257
|
-
function compileStreaming(source: Response | PromiseLike<Response
|
|
11319
|
+
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11258
11320
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
11259
|
-
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11321
|
+
function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11260
11322
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
11261
11323
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
11262
|
-
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11324
|
+
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11263
11325
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
11264
|
-
function validate(bytes: BufferSource): boolean;
|
|
11326
|
+
function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
11265
11327
|
}
|
|
11266
11328
|
|
|
11267
11329
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
|
@@ -12059,10 +12121,10 @@ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<
|
|
|
12059
12121
|
}
|
|
12060
12122
|
|
|
12061
12123
|
interface FileSystemDirectoryHandle {
|
|
12062
|
-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
12063
|
-
entries(): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
12124
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
12125
|
+
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
12064
12126
|
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
|
|
12065
|
-
values(): FileSystemDirectoryHandleAsyncIterator<
|
|
12127
|
+
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemDirectoryHandle | FileSystemFileHandle>;
|
|
12066
12128
|
}
|
|
12067
12129
|
|
|
12068
12130
|
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
package/package.json
CHANGED
package/ts5.5/asynciterable.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/////////////////////////////
|
|
4
4
|
|
|
5
5
|
interface FileSystemDirectoryHandle {
|
|
6
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<[string,
|
|
7
|
-
entries(): AsyncIterableIterator<[string,
|
|
6
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
7
|
+
entries(): AsyncIterableIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
8
8
|
keys(): AsyncIterableIterator<string>;
|
|
9
|
-
values(): AsyncIterableIterator<
|
|
9
|
+
values(): AsyncIterableIterator<FileSystemDirectoryHandle | FileSystemFileHandle>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
interface ReadableStream<R = any> {
|
package/ts5.5/index.d.ts
CHANGED
|
@@ -6244,6 +6244,12 @@ declare var PushManager: {
|
|
|
6244
6244
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
6245
6245
|
};
|
|
6246
6246
|
|
|
6247
|
+
/** Available only in secure contexts. */
|
|
6248
|
+
interface PushManagerAttribute {
|
|
6249
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
6250
|
+
readonly pushManager: PushManager;
|
|
6251
|
+
}
|
|
6252
|
+
|
|
6247
6253
|
/**
|
|
6248
6254
|
* The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
|
|
6249
6255
|
* Available only in secure contexts.
|
|
@@ -7113,7 +7119,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7113
7119
|
*
|
|
7114
7120
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7115
7121
|
*/
|
|
7116
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7122
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7117
7123
|
/**
|
|
7118
7124
|
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`.
|
|
7119
7125
|
*
|
|
@@ -7140,12 +7146,6 @@ interface ServiceWorkerRegistration extends EventTarget {
|
|
|
7140
7146
|
readonly navigationPreload: NavigationPreloadManager;
|
|
7141
7147
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
|
|
7142
7148
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
7143
|
-
/**
|
|
7144
|
-
* The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
|
|
7145
|
-
*
|
|
7146
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
|
|
7147
|
-
*/
|
|
7148
|
-
readonly pushManager: PushManager;
|
|
7149
7149
|
/**
|
|
7150
7150
|
* The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
|
|
7151
7151
|
*
|
|
@@ -11052,6 +11052,37 @@ declare namespace WebAssembly {
|
|
|
11052
11052
|
(message?: string): CompileError;
|
|
11053
11053
|
};
|
|
11054
11054
|
|
|
11055
|
+
/**
|
|
11056
|
+
* The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
|
|
11057
|
+
*
|
|
11058
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
|
|
11059
|
+
*/
|
|
11060
|
+
interface Exception {
|
|
11061
|
+
/**
|
|
11062
|
+
* The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
|
|
11063
|
+
*
|
|
11064
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
|
|
11065
|
+
*/
|
|
11066
|
+
readonly stack: string | undefined;
|
|
11067
|
+
/**
|
|
11068
|
+
* The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
|
|
11069
|
+
*
|
|
11070
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
11071
|
+
*/
|
|
11072
|
+
getArg(index: number): any;
|
|
11073
|
+
/**
|
|
11074
|
+
* The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
|
|
11075
|
+
*
|
|
11076
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
|
|
11077
|
+
*/
|
|
11078
|
+
is(exceptionTag: Tag): boolean;
|
|
11079
|
+
}
|
|
11080
|
+
|
|
11081
|
+
var Exception: {
|
|
11082
|
+
prototype: Exception;
|
|
11083
|
+
new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
|
|
11084
|
+
};
|
|
11085
|
+
|
|
11055
11086
|
/**
|
|
11056
11087
|
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
11057
11088
|
*
|
|
@@ -11112,7 +11143,7 @@ declare namespace WebAssembly {
|
|
|
11112
11143
|
*
|
|
11113
11144
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
11114
11145
|
*/
|
|
11115
|
-
grow(delta:
|
|
11146
|
+
grow(delta: AddressValue): AddressValue;
|
|
11116
11147
|
}
|
|
11117
11148
|
|
|
11118
11149
|
var Memory: {
|
|
@@ -11130,7 +11161,7 @@ declare namespace WebAssembly {
|
|
|
11130
11161
|
|
|
11131
11162
|
var Module: {
|
|
11132
11163
|
prototype: Module;
|
|
11133
|
-
new(bytes: BufferSource): Module;
|
|
11164
|
+
new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
11134
11165
|
/**
|
|
11135
11166
|
* 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.
|
|
11136
11167
|
*
|
|
@@ -11171,25 +11202,25 @@ declare namespace WebAssembly {
|
|
|
11171
11202
|
*
|
|
11172
11203
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
11173
11204
|
*/
|
|
11174
|
-
readonly length:
|
|
11205
|
+
readonly length: AddressValue;
|
|
11175
11206
|
/**
|
|
11176
11207
|
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
11177
11208
|
*
|
|
11178
11209
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
11179
11210
|
*/
|
|
11180
|
-
get(index:
|
|
11211
|
+
get(index: AddressValue): any;
|
|
11181
11212
|
/**
|
|
11182
11213
|
* 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.
|
|
11183
11214
|
*
|
|
11184
11215
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
11185
11216
|
*/
|
|
11186
|
-
grow(delta:
|
|
11217
|
+
grow(delta: AddressValue, value?: any): AddressValue;
|
|
11187
11218
|
/**
|
|
11188
11219
|
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
11189
11220
|
*
|
|
11190
11221
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
11191
11222
|
*/
|
|
11192
|
-
set(index:
|
|
11223
|
+
set(index: AddressValue, value?: any): void;
|
|
11193
11224
|
}
|
|
11194
11225
|
|
|
11195
11226
|
var Table: {
|
|
@@ -11197,14 +11228,32 @@ declare namespace WebAssembly {
|
|
|
11197
11228
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
11198
11229
|
};
|
|
11199
11230
|
|
|
11231
|
+
/**
|
|
11232
|
+
* The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
|
|
11233
|
+
*
|
|
11234
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
|
|
11235
|
+
*/
|
|
11236
|
+
interface Tag {
|
|
11237
|
+
}
|
|
11238
|
+
|
|
11239
|
+
var Tag: {
|
|
11240
|
+
prototype: Tag;
|
|
11241
|
+
new(type: TagType): Tag;
|
|
11242
|
+
};
|
|
11243
|
+
|
|
11244
|
+
interface ExceptionOptions {
|
|
11245
|
+
traceStack?: boolean;
|
|
11246
|
+
}
|
|
11247
|
+
|
|
11200
11248
|
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
|
11201
11249
|
mutable?: boolean;
|
|
11202
11250
|
value: T;
|
|
11203
11251
|
}
|
|
11204
11252
|
|
|
11205
11253
|
interface MemoryDescriptor {
|
|
11206
|
-
|
|
11207
|
-
|
|
11254
|
+
address?: AddressType;
|
|
11255
|
+
initial: AddressValue;
|
|
11256
|
+
maximum?: AddressValue;
|
|
11208
11257
|
shared?: boolean;
|
|
11209
11258
|
}
|
|
11210
11259
|
|
|
@@ -11220,9 +11269,14 @@ declare namespace WebAssembly {
|
|
|
11220
11269
|
}
|
|
11221
11270
|
|
|
11222
11271
|
interface TableDescriptor {
|
|
11272
|
+
address?: AddressType;
|
|
11223
11273
|
element: TableKind;
|
|
11224
|
-
initial:
|
|
11225
|
-
maximum?:
|
|
11274
|
+
initial: AddressValue;
|
|
11275
|
+
maximum?: AddressValue;
|
|
11276
|
+
}
|
|
11277
|
+
|
|
11278
|
+
interface TagType {
|
|
11279
|
+
parameters: ValueType[];
|
|
11226
11280
|
}
|
|
11227
11281
|
|
|
11228
11282
|
interface ValueTypeMap {
|
|
@@ -11235,30 +11289,38 @@ declare namespace WebAssembly {
|
|
|
11235
11289
|
v128: never;
|
|
11236
11290
|
}
|
|
11237
11291
|
|
|
11292
|
+
interface WebAssemblyCompileOptions {
|
|
11293
|
+
builtins?: string[];
|
|
11294
|
+
importedStringConstants?: string | null;
|
|
11295
|
+
}
|
|
11296
|
+
|
|
11238
11297
|
interface WebAssemblyInstantiatedSource {
|
|
11239
11298
|
instance: Instance;
|
|
11240
11299
|
module: Module;
|
|
11241
11300
|
}
|
|
11242
11301
|
|
|
11243
|
-
type
|
|
11302
|
+
type AddressType = "i32" | "i64";
|
|
11303
|
+
type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
|
|
11244
11304
|
type TableKind = "anyfunc" | "externref";
|
|
11305
|
+
type AddressValue = number;
|
|
11245
11306
|
type ExportValue = Function | Global | Memory | Table;
|
|
11246
11307
|
type Exports = Record<string, ExportValue>;
|
|
11247
11308
|
type ImportValue = ExportValue | number;
|
|
11248
11309
|
type Imports = Record<string, ModuleImports>;
|
|
11249
11310
|
type ModuleImports = Record<string, ImportValue>;
|
|
11250
11311
|
type ValueType = keyof ValueTypeMap;
|
|
11312
|
+
var JSTag: Tag;
|
|
11251
11313
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
11252
|
-
function compile(bytes: BufferSource): Promise<Module>;
|
|
11314
|
+
function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11253
11315
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
11254
|
-
function compileStreaming(source: Response | PromiseLike<Response
|
|
11316
|
+
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11255
11317
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
11256
|
-
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11318
|
+
function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11257
11319
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
11258
11320
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
11259
|
-
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11321
|
+
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11260
11322
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
11261
|
-
function validate(bytes: BufferSource): boolean;
|
|
11323
|
+
function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
11262
11324
|
}
|
|
11263
11325
|
|
|
11264
11326
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
package/ts5.6/asynciterable.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
interface FileSystemDirectoryHandle {
|
|
10
|
-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
11
|
-
entries(): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
10
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
11
|
+
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
12
12
|
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
|
|
13
|
-
values(): FileSystemDirectoryHandleAsyncIterator<
|
|
13
|
+
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemDirectoryHandle | FileSystemFileHandle>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -6244,6 +6244,12 @@ declare var PushManager: {
|
|
|
6244
6244
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
6245
6245
|
};
|
|
6246
6246
|
|
|
6247
|
+
/** Available only in secure contexts. */
|
|
6248
|
+
interface PushManagerAttribute {
|
|
6249
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
6250
|
+
readonly pushManager: PushManager;
|
|
6251
|
+
}
|
|
6252
|
+
|
|
6247
6253
|
/**
|
|
6248
6254
|
* The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
|
|
6249
6255
|
* Available only in secure contexts.
|
|
@@ -7113,7 +7119,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7113
7119
|
*
|
|
7114
7120
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7115
7121
|
*/
|
|
7116
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7122
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7117
7123
|
/**
|
|
7118
7124
|
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`.
|
|
7119
7125
|
*
|
|
@@ -7140,12 +7146,6 @@ interface ServiceWorkerRegistration extends EventTarget {
|
|
|
7140
7146
|
readonly navigationPreload: NavigationPreloadManager;
|
|
7141
7147
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
|
|
7142
7148
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
7143
|
-
/**
|
|
7144
|
-
* The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
|
|
7145
|
-
*
|
|
7146
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
|
|
7147
|
-
*/
|
|
7148
|
-
readonly pushManager: PushManager;
|
|
7149
7149
|
/**
|
|
7150
7150
|
* The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
|
|
7151
7151
|
*
|
|
@@ -11052,6 +11052,37 @@ declare namespace WebAssembly {
|
|
|
11052
11052
|
(message?: string): CompileError;
|
|
11053
11053
|
};
|
|
11054
11054
|
|
|
11055
|
+
/**
|
|
11056
|
+
* The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
|
|
11057
|
+
*
|
|
11058
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
|
|
11059
|
+
*/
|
|
11060
|
+
interface Exception {
|
|
11061
|
+
/**
|
|
11062
|
+
* The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
|
|
11063
|
+
*
|
|
11064
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
|
|
11065
|
+
*/
|
|
11066
|
+
readonly stack: string | undefined;
|
|
11067
|
+
/**
|
|
11068
|
+
* The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
|
|
11069
|
+
*
|
|
11070
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
11071
|
+
*/
|
|
11072
|
+
getArg(index: number): any;
|
|
11073
|
+
/**
|
|
11074
|
+
* The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
|
|
11075
|
+
*
|
|
11076
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
|
|
11077
|
+
*/
|
|
11078
|
+
is(exceptionTag: Tag): boolean;
|
|
11079
|
+
}
|
|
11080
|
+
|
|
11081
|
+
var Exception: {
|
|
11082
|
+
prototype: Exception;
|
|
11083
|
+
new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
|
|
11084
|
+
};
|
|
11085
|
+
|
|
11055
11086
|
/**
|
|
11056
11087
|
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
11057
11088
|
*
|
|
@@ -11112,7 +11143,7 @@ declare namespace WebAssembly {
|
|
|
11112
11143
|
*
|
|
11113
11144
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
11114
11145
|
*/
|
|
11115
|
-
grow(delta:
|
|
11146
|
+
grow(delta: AddressValue): AddressValue;
|
|
11116
11147
|
}
|
|
11117
11148
|
|
|
11118
11149
|
var Memory: {
|
|
@@ -11130,7 +11161,7 @@ declare namespace WebAssembly {
|
|
|
11130
11161
|
|
|
11131
11162
|
var Module: {
|
|
11132
11163
|
prototype: Module;
|
|
11133
|
-
new(bytes: BufferSource): Module;
|
|
11164
|
+
new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
11134
11165
|
/**
|
|
11135
11166
|
* 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.
|
|
11136
11167
|
*
|
|
@@ -11171,25 +11202,25 @@ declare namespace WebAssembly {
|
|
|
11171
11202
|
*
|
|
11172
11203
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
11173
11204
|
*/
|
|
11174
|
-
readonly length:
|
|
11205
|
+
readonly length: AddressValue;
|
|
11175
11206
|
/**
|
|
11176
11207
|
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
11177
11208
|
*
|
|
11178
11209
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
11179
11210
|
*/
|
|
11180
|
-
get(index:
|
|
11211
|
+
get(index: AddressValue): any;
|
|
11181
11212
|
/**
|
|
11182
11213
|
* 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.
|
|
11183
11214
|
*
|
|
11184
11215
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
11185
11216
|
*/
|
|
11186
|
-
grow(delta:
|
|
11217
|
+
grow(delta: AddressValue, value?: any): AddressValue;
|
|
11187
11218
|
/**
|
|
11188
11219
|
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
11189
11220
|
*
|
|
11190
11221
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
11191
11222
|
*/
|
|
11192
|
-
set(index:
|
|
11223
|
+
set(index: AddressValue, value?: any): void;
|
|
11193
11224
|
}
|
|
11194
11225
|
|
|
11195
11226
|
var Table: {
|
|
@@ -11197,14 +11228,32 @@ declare namespace WebAssembly {
|
|
|
11197
11228
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
11198
11229
|
};
|
|
11199
11230
|
|
|
11231
|
+
/**
|
|
11232
|
+
* The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
|
|
11233
|
+
*
|
|
11234
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
|
|
11235
|
+
*/
|
|
11236
|
+
interface Tag {
|
|
11237
|
+
}
|
|
11238
|
+
|
|
11239
|
+
var Tag: {
|
|
11240
|
+
prototype: Tag;
|
|
11241
|
+
new(type: TagType): Tag;
|
|
11242
|
+
};
|
|
11243
|
+
|
|
11244
|
+
interface ExceptionOptions {
|
|
11245
|
+
traceStack?: boolean;
|
|
11246
|
+
}
|
|
11247
|
+
|
|
11200
11248
|
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
|
11201
11249
|
mutable?: boolean;
|
|
11202
11250
|
value: T;
|
|
11203
11251
|
}
|
|
11204
11252
|
|
|
11205
11253
|
interface MemoryDescriptor {
|
|
11206
|
-
|
|
11207
|
-
|
|
11254
|
+
address?: AddressType;
|
|
11255
|
+
initial: AddressValue;
|
|
11256
|
+
maximum?: AddressValue;
|
|
11208
11257
|
shared?: boolean;
|
|
11209
11258
|
}
|
|
11210
11259
|
|
|
@@ -11220,9 +11269,14 @@ declare namespace WebAssembly {
|
|
|
11220
11269
|
}
|
|
11221
11270
|
|
|
11222
11271
|
interface TableDescriptor {
|
|
11272
|
+
address?: AddressType;
|
|
11223
11273
|
element: TableKind;
|
|
11224
|
-
initial:
|
|
11225
|
-
maximum?:
|
|
11274
|
+
initial: AddressValue;
|
|
11275
|
+
maximum?: AddressValue;
|
|
11276
|
+
}
|
|
11277
|
+
|
|
11278
|
+
interface TagType {
|
|
11279
|
+
parameters: ValueType[];
|
|
11226
11280
|
}
|
|
11227
11281
|
|
|
11228
11282
|
interface ValueTypeMap {
|
|
@@ -11235,30 +11289,38 @@ declare namespace WebAssembly {
|
|
|
11235
11289
|
v128: never;
|
|
11236
11290
|
}
|
|
11237
11291
|
|
|
11292
|
+
interface WebAssemblyCompileOptions {
|
|
11293
|
+
builtins?: string[];
|
|
11294
|
+
importedStringConstants?: string | null;
|
|
11295
|
+
}
|
|
11296
|
+
|
|
11238
11297
|
interface WebAssemblyInstantiatedSource {
|
|
11239
11298
|
instance: Instance;
|
|
11240
11299
|
module: Module;
|
|
11241
11300
|
}
|
|
11242
11301
|
|
|
11243
|
-
type
|
|
11302
|
+
type AddressType = "i32" | "i64";
|
|
11303
|
+
type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
|
|
11244
11304
|
type TableKind = "anyfunc" | "externref";
|
|
11305
|
+
type AddressValue = number;
|
|
11245
11306
|
type ExportValue = Function | Global | Memory | Table;
|
|
11246
11307
|
type Exports = Record<string, ExportValue>;
|
|
11247
11308
|
type ImportValue = ExportValue | number;
|
|
11248
11309
|
type Imports = Record<string, ModuleImports>;
|
|
11249
11310
|
type ModuleImports = Record<string, ImportValue>;
|
|
11250
11311
|
type ValueType = keyof ValueTypeMap;
|
|
11312
|
+
var JSTag: Tag;
|
|
11251
11313
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
11252
|
-
function compile(bytes: BufferSource): Promise<Module>;
|
|
11314
|
+
function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11253
11315
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
11254
|
-
function compileStreaming(source: Response | PromiseLike<Response
|
|
11316
|
+
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11255
11317
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
11256
|
-
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11318
|
+
function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11257
11319
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
11258
11320
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
11259
|
-
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11321
|
+
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11260
11322
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
11261
|
-
function validate(bytes: BufferSource): boolean;
|
|
11323
|
+
function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
11262
11324
|
}
|
|
11263
11325
|
|
|
11264
11326
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
package/ts5.9/asynciterable.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
interface FileSystemDirectoryHandle {
|
|
10
|
-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
11
|
-
entries(): FileSystemDirectoryHandleAsyncIterator<[string,
|
|
10
|
+
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
11
|
+
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemDirectoryHandle | FileSystemFileHandle]>;
|
|
12
12
|
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
|
|
13
|
-
values(): FileSystemDirectoryHandleAsyncIterator<
|
|
13
|
+
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemDirectoryHandle | FileSystemFileHandle>;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -6244,6 +6244,12 @@ declare var PushManager: {
|
|
|
6244
6244
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
6245
6245
|
};
|
|
6246
6246
|
|
|
6247
|
+
/** Available only in secure contexts. */
|
|
6248
|
+
interface PushManagerAttribute {
|
|
6249
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
|
|
6250
|
+
readonly pushManager: PushManager;
|
|
6251
|
+
}
|
|
6252
|
+
|
|
6247
6253
|
/**
|
|
6248
6254
|
* The **`PushMessageData`** interface of the Push API provides methods which let you retrieve the push data sent by a server in various formats.
|
|
6249
6255
|
* Available only in secure contexts.
|
|
@@ -7113,7 +7119,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7113
7119
|
*
|
|
7114
7120
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7115
7121
|
*/
|
|
7116
|
-
interface ServiceWorkerRegistration extends EventTarget {
|
|
7122
|
+
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7117
7123
|
/**
|
|
7118
7124
|
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is `activating` or `activated`.
|
|
7119
7125
|
*
|
|
@@ -7140,12 +7146,6 @@ interface ServiceWorkerRegistration extends EventTarget {
|
|
|
7140
7146
|
readonly navigationPreload: NavigationPreloadManager;
|
|
7141
7147
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
|
|
7142
7148
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
7143
|
-
/**
|
|
7144
|
-
* The **`pushManager`** read-only property of the ServiceWorkerRegistration interface returns a reference to the PushManager interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.
|
|
7145
|
-
*
|
|
7146
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager)
|
|
7147
|
-
*/
|
|
7148
|
-
readonly pushManager: PushManager;
|
|
7149
7149
|
/**
|
|
7150
7150
|
* The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
|
|
7151
7151
|
*
|
|
@@ -11052,6 +11052,37 @@ declare namespace WebAssembly {
|
|
|
11052
11052
|
(message?: string): CompileError;
|
|
11053
11053
|
};
|
|
11054
11054
|
|
|
11055
|
+
/**
|
|
11056
|
+
* The **`WebAssembly.Exception`** object represents a runtime exception thrown from WebAssembly to JavaScript, or thrown from JavaScript to a WebAssembly exception handler.
|
|
11057
|
+
*
|
|
11058
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception)
|
|
11059
|
+
*/
|
|
11060
|
+
interface Exception {
|
|
11061
|
+
/**
|
|
11062
|
+
* The read-only **`stack`** property of an object instance of type `WebAssembly.Exception` _may_ contain a stack trace.
|
|
11063
|
+
*
|
|
11064
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
|
|
11065
|
+
*/
|
|
11066
|
+
readonly stack: string | undefined;
|
|
11067
|
+
/**
|
|
11068
|
+
* The **`getArg()`** prototype method of the `Exception` object can be used to get the value of a specified item in the exception's data arguments.
|
|
11069
|
+
*
|
|
11070
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
11071
|
+
*/
|
|
11072
|
+
getArg(index: number): any;
|
|
11073
|
+
/**
|
|
11074
|
+
* The **`is()`** prototype method of the `Exception` object can be used to test if the `Exception` matches a given tag.
|
|
11075
|
+
*
|
|
11076
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
|
|
11077
|
+
*/
|
|
11078
|
+
is(exceptionTag: Tag): boolean;
|
|
11079
|
+
}
|
|
11080
|
+
|
|
11081
|
+
var Exception: {
|
|
11082
|
+
prototype: Exception;
|
|
11083
|
+
new(exceptionTag: Tag, payload: any[], options?: ExceptionOptions): Exception;
|
|
11084
|
+
};
|
|
11085
|
+
|
|
11055
11086
|
/**
|
|
11056
11087
|
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more `WebAssembly.Module` instances.
|
|
11057
11088
|
*
|
|
@@ -11112,7 +11143,7 @@ declare namespace WebAssembly {
|
|
|
11112
11143
|
*
|
|
11113
11144
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
11114
11145
|
*/
|
|
11115
|
-
grow(delta:
|
|
11146
|
+
grow(delta: AddressValue): AddressValue;
|
|
11116
11147
|
}
|
|
11117
11148
|
|
|
11118
11149
|
var Memory: {
|
|
@@ -11130,7 +11161,7 @@ declare namespace WebAssembly {
|
|
|
11130
11161
|
|
|
11131
11162
|
var Module: {
|
|
11132
11163
|
prototype: Module;
|
|
11133
|
-
new(bytes: BufferSource): Module;
|
|
11164
|
+
new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
11134
11165
|
/**
|
|
11135
11166
|
* 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.
|
|
11136
11167
|
*
|
|
@@ -11171,25 +11202,25 @@ declare namespace WebAssembly {
|
|
|
11171
11202
|
*
|
|
11172
11203
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
11173
11204
|
*/
|
|
11174
|
-
readonly length:
|
|
11205
|
+
readonly length: AddressValue;
|
|
11175
11206
|
/**
|
|
11176
11207
|
* The **`get()`** prototype method of the `WebAssembly.Table()` object retrieves the element stored at a given index.
|
|
11177
11208
|
*
|
|
11178
11209
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
11179
11210
|
*/
|
|
11180
|
-
get(index:
|
|
11211
|
+
get(index: AddressValue): any;
|
|
11181
11212
|
/**
|
|
11182
11213
|
* 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.
|
|
11183
11214
|
*
|
|
11184
11215
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
11185
11216
|
*/
|
|
11186
|
-
grow(delta:
|
|
11217
|
+
grow(delta: AddressValue, value?: any): AddressValue;
|
|
11187
11218
|
/**
|
|
11188
11219
|
* The **`set()`** prototype method of the `WebAssembly.Table` object mutates a reference stored at a given index to a different value.
|
|
11189
11220
|
*
|
|
11190
11221
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
11191
11222
|
*/
|
|
11192
|
-
set(index:
|
|
11223
|
+
set(index: AddressValue, value?: any): void;
|
|
11193
11224
|
}
|
|
11194
11225
|
|
|
11195
11226
|
var Table: {
|
|
@@ -11197,14 +11228,32 @@ declare namespace WebAssembly {
|
|
|
11197
11228
|
new(descriptor: TableDescriptor, value?: any): Table;
|
|
11198
11229
|
};
|
|
11199
11230
|
|
|
11231
|
+
/**
|
|
11232
|
+
* The **`WebAssembly.Tag`** object defines a _type_ of a WebAssembly exception that can be thrown to/from WebAssembly code.
|
|
11233
|
+
*
|
|
11234
|
+
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
|
|
11235
|
+
*/
|
|
11236
|
+
interface Tag {
|
|
11237
|
+
}
|
|
11238
|
+
|
|
11239
|
+
var Tag: {
|
|
11240
|
+
prototype: Tag;
|
|
11241
|
+
new(type: TagType): Tag;
|
|
11242
|
+
};
|
|
11243
|
+
|
|
11244
|
+
interface ExceptionOptions {
|
|
11245
|
+
traceStack?: boolean;
|
|
11246
|
+
}
|
|
11247
|
+
|
|
11200
11248
|
interface GlobalDescriptor<T extends ValueType = ValueType> {
|
|
11201
11249
|
mutable?: boolean;
|
|
11202
11250
|
value: T;
|
|
11203
11251
|
}
|
|
11204
11252
|
|
|
11205
11253
|
interface MemoryDescriptor {
|
|
11206
|
-
|
|
11207
|
-
|
|
11254
|
+
address?: AddressType;
|
|
11255
|
+
initial: AddressValue;
|
|
11256
|
+
maximum?: AddressValue;
|
|
11208
11257
|
shared?: boolean;
|
|
11209
11258
|
}
|
|
11210
11259
|
|
|
@@ -11220,9 +11269,14 @@ declare namespace WebAssembly {
|
|
|
11220
11269
|
}
|
|
11221
11270
|
|
|
11222
11271
|
interface TableDescriptor {
|
|
11272
|
+
address?: AddressType;
|
|
11223
11273
|
element: TableKind;
|
|
11224
|
-
initial:
|
|
11225
|
-
maximum?:
|
|
11274
|
+
initial: AddressValue;
|
|
11275
|
+
maximum?: AddressValue;
|
|
11276
|
+
}
|
|
11277
|
+
|
|
11278
|
+
interface TagType {
|
|
11279
|
+
parameters: ValueType[];
|
|
11226
11280
|
}
|
|
11227
11281
|
|
|
11228
11282
|
interface ValueTypeMap {
|
|
@@ -11235,30 +11289,38 @@ declare namespace WebAssembly {
|
|
|
11235
11289
|
v128: never;
|
|
11236
11290
|
}
|
|
11237
11291
|
|
|
11292
|
+
interface WebAssemblyCompileOptions {
|
|
11293
|
+
builtins?: string[];
|
|
11294
|
+
importedStringConstants?: string | null;
|
|
11295
|
+
}
|
|
11296
|
+
|
|
11238
11297
|
interface WebAssemblyInstantiatedSource {
|
|
11239
11298
|
instance: Instance;
|
|
11240
11299
|
module: Module;
|
|
11241
11300
|
}
|
|
11242
11301
|
|
|
11243
|
-
type
|
|
11302
|
+
type AddressType = "i32" | "i64";
|
|
11303
|
+
type ImportExportKind = "function" | "global" | "memory" | "table" | "tag";
|
|
11244
11304
|
type TableKind = "anyfunc" | "externref";
|
|
11305
|
+
type AddressValue = number;
|
|
11245
11306
|
type ExportValue = Function | Global | Memory | Table;
|
|
11246
11307
|
type Exports = Record<string, ExportValue>;
|
|
11247
11308
|
type ImportValue = ExportValue | number;
|
|
11248
11309
|
type Imports = Record<string, ModuleImports>;
|
|
11249
11310
|
type ModuleImports = Record<string, ImportValue>;
|
|
11250
11311
|
type ValueType = keyof ValueTypeMap;
|
|
11312
|
+
var JSTag: Tag;
|
|
11251
11313
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static) */
|
|
11252
|
-
function compile(bytes: BufferSource): Promise<Module>;
|
|
11314
|
+
function compile(bytes: BufferSource, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11253
11315
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static) */
|
|
11254
|
-
function compileStreaming(source: Response | PromiseLike<Response
|
|
11316
|
+
function compileStreaming(source: Response | PromiseLike<Response>, options?: WebAssemblyCompileOptions): Promise<Module>;
|
|
11255
11317
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static) */
|
|
11256
|
-
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11318
|
+
function instantiate(bytes: BufferSource, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11257
11319
|
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
|
|
11258
11320
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static) */
|
|
11259
|
-
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
|
|
11321
|
+
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports, options?: WebAssemblyCompileOptions): Promise<WebAssemblyInstantiatedSource>;
|
|
11260
11322
|
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static) */
|
|
11261
|
-
function validate(bytes: BufferSource): boolean;
|
|
11323
|
+
function validate(bytes: BufferSource, options?: WebAssemblyCompileOptions): boolean;
|
|
11262
11324
|
}
|
|
11263
11325
|
|
|
11264
11326
|
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|