@types/serviceworker 0.0.204 → 0.0.206
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 +162 -8
- package/package.json +1 -1
- package/ts5.5/index.d.ts +153 -8
- package/ts5.5/iterable.d.ts +9 -0
- package/ts5.6/index.d.ts +153 -8
- package/ts5.6/iterable.d.ts +9 -0
- package/ts5.9/index.d.ts +153 -8
- package/ts5.9/iterable.d.ts +9 -0
package/README.md
CHANGED
|
@@ -30,4 +30,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
30
30
|
|
|
31
31
|
## Deploy Metadata
|
|
32
32
|
|
|
33
|
-
You can read what changed in version 0.0.
|
|
33
|
+
You can read what changed in version 0.0.206 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.206.
|
package/index.d.ts
CHANGED
|
@@ -536,8 +536,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
interface GPURequestAdapterOptions {
|
|
539
|
+
featureLevel?: string;
|
|
539
540
|
forceFallbackAdapter?: boolean;
|
|
540
541
|
powerPreference?: GPUPowerPreference;
|
|
542
|
+
xrCompatible?: boolean;
|
|
541
543
|
}
|
|
542
544
|
|
|
543
545
|
interface GPUSamplerBindingLayout {
|
|
@@ -557,8 +559,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
|
557
559
|
mipmapFilter?: GPUMipmapFilterMode;
|
|
558
560
|
}
|
|
559
561
|
|
|
562
|
+
interface GPUShaderModuleCompilationHint {
|
|
563
|
+
entryPoint: string;
|
|
564
|
+
layout?: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
565
|
+
}
|
|
566
|
+
|
|
560
567
|
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
561
568
|
code: string;
|
|
569
|
+
compilationHints?: GPUShaderModuleCompilationHint[];
|
|
562
570
|
}
|
|
563
571
|
|
|
564
572
|
interface GPUStencilFaceState {
|
|
@@ -615,6 +623,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
|
615
623
|
dimension?: GPUTextureViewDimension;
|
|
616
624
|
format?: GPUTextureFormat;
|
|
617
625
|
mipLevelCount?: GPUIntegerCoordinate;
|
|
626
|
+
swizzle?: string;
|
|
618
627
|
usage?: GPUTextureUsageFlags;
|
|
619
628
|
}
|
|
620
629
|
|
|
@@ -663,6 +672,12 @@ interface IDBDatabaseInfo {
|
|
|
663
672
|
version?: number;
|
|
664
673
|
}
|
|
665
674
|
|
|
675
|
+
interface IDBGetAllOptions {
|
|
676
|
+
count?: number;
|
|
677
|
+
direction?: IDBCursorDirection;
|
|
678
|
+
query?: any;
|
|
679
|
+
}
|
|
680
|
+
|
|
666
681
|
interface IDBIndexParameters {
|
|
667
682
|
multiEntry?: boolean;
|
|
668
683
|
unique?: boolean;
|
|
@@ -878,7 +893,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
|
878
893
|
interface PushSubscriptionJSON {
|
|
879
894
|
endpoint?: string;
|
|
880
895
|
expirationTime?: EpochTimeStamp | null;
|
|
881
|
-
keys?:
|
|
896
|
+
keys?: PushSubscriptionKeys;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
interface PushSubscriptionKeys {
|
|
900
|
+
auth?: string;
|
|
901
|
+
p256dh?: string;
|
|
882
902
|
}
|
|
883
903
|
|
|
884
904
|
interface PushSubscriptionOptionsInit {
|
|
@@ -1000,6 +1020,25 @@ interface ResponseInit {
|
|
|
1000
1020
|
statusText?: string;
|
|
1001
1021
|
}
|
|
1002
1022
|
|
|
1023
|
+
interface RouterCondition {
|
|
1024
|
+
not?: RouterCondition;
|
|
1025
|
+
or?: RouterCondition[];
|
|
1026
|
+
requestDestination?: RequestDestination;
|
|
1027
|
+
requestMethod?: string;
|
|
1028
|
+
requestMode?: RequestMode;
|
|
1029
|
+
runningStatus?: RunningStatus;
|
|
1030
|
+
urlPattern?: URLPatternCompatible;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
interface RouterRule {
|
|
1034
|
+
condition: RouterCondition;
|
|
1035
|
+
source: RouterSource;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
interface RouterSourceDict {
|
|
1039
|
+
cacheName?: string;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1003
1042
|
interface RsaHashedImportParams extends Algorithm {
|
|
1004
1043
|
hash: HashAlgorithmIdentifier;
|
|
1005
1044
|
}
|
|
@@ -1255,6 +1294,7 @@ interface WebTransportReceiveStreamStats {
|
|
|
1255
1294
|
}
|
|
1256
1295
|
|
|
1257
1296
|
interface WebTransportSendOptions {
|
|
1297
|
+
sendGroup?: WebTransportSendGroup | null;
|
|
1258
1298
|
sendOrder?: number;
|
|
1259
1299
|
}
|
|
1260
1300
|
|
|
@@ -6168,6 +6208,12 @@ interface IDBIndex {
|
|
|
6168
6208
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
|
|
6169
6209
|
*/
|
|
6170
6210
|
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
6211
|
+
/**
|
|
6212
|
+
* The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index.
|
|
6213
|
+
*
|
|
6214
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords)
|
|
6215
|
+
*/
|
|
6216
|
+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
|
|
6171
6217
|
/**
|
|
6172
6218
|
* The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange.
|
|
6173
6219
|
*
|
|
@@ -6350,6 +6396,12 @@ interface IDBObjectStore {
|
|
|
6350
6396
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
|
|
6351
6397
|
*/
|
|
6352
6398
|
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
6399
|
+
/**
|
|
6400
|
+
* The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store.
|
|
6401
|
+
*
|
|
6402
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords)
|
|
6403
|
+
*/
|
|
6404
|
+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
|
|
6353
6405
|
/**
|
|
6354
6406
|
* The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.
|
|
6355
6407
|
*
|
|
@@ -6413,6 +6465,18 @@ declare var IDBOpenDBRequest: {
|
|
|
6413
6465
|
new(): IDBOpenDBRequest;
|
|
6414
6466
|
};
|
|
6415
6467
|
|
|
6468
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */
|
|
6469
|
+
interface IDBRecord {
|
|
6470
|
+
readonly key: any;
|
|
6471
|
+
readonly primaryKey: any;
|
|
6472
|
+
readonly value: any;
|
|
6473
|
+
}
|
|
6474
|
+
|
|
6475
|
+
declare var IDBRecord: {
|
|
6476
|
+
prototype: IDBRecord;
|
|
6477
|
+
new(): IDBRecord;
|
|
6478
|
+
};
|
|
6479
|
+
|
|
6416
6480
|
interface IDBRequestEventMap {
|
|
6417
6481
|
"error": Event;
|
|
6418
6482
|
"success": Event;
|
|
@@ -6664,6 +6728,25 @@ interface ImportMeta {
|
|
|
6664
6728
|
resolve(specifier: string): string;
|
|
6665
6729
|
}
|
|
6666
6730
|
|
|
6731
|
+
/**
|
|
6732
|
+
* The parameter passed into an install event handler function, the **`InstallEvent`** interface represents an install action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. As a child of ExtendableEvent, it ensures that functional events such as FetchEvent are not dispatched during installation.
|
|
6733
|
+
*
|
|
6734
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
6735
|
+
*/
|
|
6736
|
+
interface InstallEvent extends ExtendableEvent {
|
|
6737
|
+
/**
|
|
6738
|
+
* The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles.
|
|
6739
|
+
*
|
|
6740
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes)
|
|
6741
|
+
*/
|
|
6742
|
+
addRoutes(rules: RouterRule | RouterRule[]): Promise<void>;
|
|
6743
|
+
}
|
|
6744
|
+
|
|
6745
|
+
declare var InstallEvent: {
|
|
6746
|
+
prototype: InstallEvent;
|
|
6747
|
+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
6748
|
+
};
|
|
6749
|
+
|
|
6667
6750
|
/**
|
|
6668
6751
|
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
|
|
6669
6752
|
*
|
|
@@ -7425,12 +7508,18 @@ interface Performance extends EventTarget {
|
|
|
7425
7508
|
*
|
|
7426
7509
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
|
|
7427
7510
|
*/
|
|
7511
|
+
getEntriesByName(name: string, type: "mark"): PerformanceMark[];
|
|
7512
|
+
getEntriesByName(name: string, type: "measure"): PerformanceMeasure[];
|
|
7513
|
+
getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[];
|
|
7428
7514
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
7429
7515
|
/**
|
|
7430
7516
|
* The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type.
|
|
7431
7517
|
*
|
|
7432
7518
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
|
|
7433
7519
|
*/
|
|
7520
|
+
getEntriesByType(type: "mark"): PerformanceMark[];
|
|
7521
|
+
getEntriesByType(type: "measure"): PerformanceMeasure[];
|
|
7522
|
+
getEntriesByType(type: "resource"): PerformanceResourceTiming[];
|
|
7434
7523
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
7435
7524
|
/**
|
|
7436
7525
|
* The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
|
|
@@ -7608,12 +7697,18 @@ interface PerformanceObserverEntryList {
|
|
|
7608
7697
|
*
|
|
7609
7698
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
|
|
7610
7699
|
*/
|
|
7700
|
+
getEntriesByName(name: string, type: "mark"): PerformanceMark[];
|
|
7701
|
+
getEntriesByName(name: string, type: "measure"): PerformanceMeasure[];
|
|
7702
|
+
getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[];
|
|
7611
7703
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
7612
7704
|
/**
|
|
7613
7705
|
* The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback).
|
|
7614
7706
|
*
|
|
7615
7707
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
|
|
7616
7708
|
*/
|
|
7709
|
+
getEntriesByType(type: "mark"): PerformanceMark[];
|
|
7710
|
+
getEntriesByType(type: "measure"): PerformanceMeasure[];
|
|
7711
|
+
getEntriesByType(type: "resource"): PerformanceResourceTiming[];
|
|
7617
7712
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
7618
7713
|
}
|
|
7619
7714
|
|
|
@@ -7760,6 +7855,8 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7760
7855
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
|
|
7761
7856
|
*/
|
|
7762
7857
|
readonly transferSize: number;
|
|
7858
|
+
readonly workerCacheLookupStart: DOMHighResTimeStamp;
|
|
7859
|
+
readonly workerRouterEvaluationStart: DOMHighResTimeStamp;
|
|
7763
7860
|
/**
|
|
7764
7861
|
* The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0.
|
|
7765
7862
|
*
|
|
@@ -8216,6 +8313,12 @@ declare var ReadableStream: {
|
|
|
8216
8313
|
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
8217
8314
|
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
8218
8315
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
8316
|
+
/**
|
|
8317
|
+
* The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object.
|
|
8318
|
+
*
|
|
8319
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static)
|
|
8320
|
+
*/
|
|
8321
|
+
from(asyncIterable: AsyncIterable<any> | Iterable<any>): ReadableStream;
|
|
8219
8322
|
};
|
|
8220
8323
|
|
|
8221
8324
|
/**
|
|
@@ -8561,7 +8664,7 @@ interface Scheduler {
|
|
|
8561
8664
|
*
|
|
8562
8665
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask)
|
|
8563
8666
|
*/
|
|
8564
|
-
postTask(callback: SchedulerPostTaskCallback
|
|
8667
|
+
postTask<T = any>(callback: SchedulerPostTaskCallback<T>, options?: SchedulerPostTaskOptions): Promise<T>;
|
|
8565
8668
|
/**
|
|
8566
8669
|
* The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive.
|
|
8567
8670
|
*
|
|
@@ -12300,6 +12403,7 @@ interface WebTransport {
|
|
|
12300
12403
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)
|
|
12301
12404
|
*/
|
|
12302
12405
|
readonly datagrams: WebTransportDatagramDuplexStream;
|
|
12406
|
+
readonly draining: Promise<void>;
|
|
12303
12407
|
/**
|
|
12304
12408
|
* The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it.
|
|
12305
12409
|
*
|
|
@@ -12337,6 +12441,8 @@ interface WebTransport {
|
|
|
12337
12441
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)
|
|
12338
12442
|
*/
|
|
12339
12443
|
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
|
|
12444
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */
|
|
12445
|
+
createSendGroup(): WebTransportSendGroup;
|
|
12340
12446
|
/**
|
|
12341
12447
|
* The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream.
|
|
12342
12448
|
*
|
|
@@ -12431,6 +12537,8 @@ interface WebTransportDatagramDuplexStream {
|
|
|
12431
12537
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
|
|
12432
12538
|
*/
|
|
12433
12539
|
readonly writable: WritableStream;
|
|
12540
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */
|
|
12541
|
+
createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable;
|
|
12434
12542
|
}
|
|
12435
12543
|
|
|
12436
12544
|
declare var WebTransportDatagramDuplexStream: {
|
|
@@ -12438,6 +12546,23 @@ declare var WebTransportDatagramDuplexStream: {
|
|
|
12438
12546
|
new(): WebTransportDatagramDuplexStream;
|
|
12439
12547
|
};
|
|
12440
12548
|
|
|
12549
|
+
/**
|
|
12550
|
+
* Available only in secure contexts.
|
|
12551
|
+
*
|
|
12552
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable)
|
|
12553
|
+
*/
|
|
12554
|
+
interface WebTransportDatagramsWritable extends WritableStream {
|
|
12555
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */
|
|
12556
|
+
sendGroup: WebTransportSendGroup | null;
|
|
12557
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */
|
|
12558
|
+
sendOrder: number;
|
|
12559
|
+
}
|
|
12560
|
+
|
|
12561
|
+
declare var WebTransportDatagramsWritable: {
|
|
12562
|
+
prototype: WebTransportDatagramsWritable;
|
|
12563
|
+
new(): WebTransportDatagramsWritable;
|
|
12564
|
+
};
|
|
12565
|
+
|
|
12441
12566
|
/**
|
|
12442
12567
|
* The **`WebTransportError`** interface of the WebTransport API represents an error related to the API, which can arise from server errors, network connection problems, or client-initiated abort operations (for example, arising from a WritableStream.abort() call).
|
|
12443
12568
|
* Available only in secure contexts.
|
|
@@ -12484,6 +12609,21 @@ declare var WebTransportReceiveStream: {
|
|
|
12484
12609
|
new(): WebTransportReceiveStream;
|
|
12485
12610
|
};
|
|
12486
12611
|
|
|
12612
|
+
/**
|
|
12613
|
+
* Available only in secure contexts.
|
|
12614
|
+
*
|
|
12615
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup)
|
|
12616
|
+
*/
|
|
12617
|
+
interface WebTransportSendGroup {
|
|
12618
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */
|
|
12619
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
12620
|
+
}
|
|
12621
|
+
|
|
12622
|
+
declare var WebTransportSendGroup: {
|
|
12623
|
+
prototype: WebTransportSendGroup;
|
|
12624
|
+
new(): WebTransportSendGroup;
|
|
12625
|
+
};
|
|
12626
|
+
|
|
12487
12627
|
/**
|
|
12488
12628
|
* The **`WebTransportSendStream`** interface of the WebTransport API is a specialized WritableStream that is used to send outbound data in both unidirectional or bidirectional WebTransport streams.
|
|
12489
12629
|
* Available only in secure contexts.
|
|
@@ -12491,6 +12631,7 @@ declare var WebTransportReceiveStream: {
|
|
|
12491
12631
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
12492
12632
|
*/
|
|
12493
12633
|
interface WebTransportSendStream extends WritableStream {
|
|
12634
|
+
sendGroup: WebTransportSendGroup | null;
|
|
12494
12635
|
/**
|
|
12495
12636
|
* The **`sendOrder`** property of the WebTransportSendStream interface indicates the send priority of this stream relative to other streams for which the value has been set.
|
|
12496
12637
|
*
|
|
@@ -13352,8 +13493,8 @@ interface ReportingObserverCallback {
|
|
|
13352
13493
|
(reports: Report[], observer: ReportingObserver): void;
|
|
13353
13494
|
}
|
|
13354
13495
|
|
|
13355
|
-
interface SchedulerPostTaskCallback {
|
|
13356
|
-
():
|
|
13496
|
+
interface SchedulerPostTaskCallback<T = any> {
|
|
13497
|
+
(): T | PromiseLike<T>;
|
|
13357
13498
|
}
|
|
13358
13499
|
|
|
13359
13500
|
interface TransformerFlushCallback<O> {
|
|
@@ -13552,7 +13693,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView<ArrayBufferLike
|
|
|
13552
13693
|
type BigInteger = Uint8Array<ArrayBuffer>;
|
|
13553
13694
|
type BlobPart = BufferSource | Blob | string;
|
|
13554
13695
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
13555
|
-
type BufferSource =
|
|
13696
|
+
type BufferSource = ArrayBuffer | ArrayBufferView<ArrayBuffer>;
|
|
13556
13697
|
type CSSKeywordish = string | CSSKeywordValue;
|
|
13557
13698
|
type CSSNumberish = number | CSSNumericValue;
|
|
13558
13699
|
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
|
|
@@ -13619,9 +13760,11 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
|
|
|
13619
13760
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
13620
13761
|
type ReportList = Report[];
|
|
13621
13762
|
type RequestInfo = Request | string;
|
|
13763
|
+
type RouterSource = RouterSourceDict | RouterSourceEnum;
|
|
13622
13764
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
13623
13765
|
type TimerHandler = string | Function;
|
|
13624
|
-
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
13766
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer;
|
|
13767
|
+
type URLPatternCompatible = string | URLPatternInit | URLPattern;
|
|
13625
13768
|
type URLPatternInput = string | URLPatternInit;
|
|
13626
13769
|
type Uint32List = Uint32Array<ArrayBufferLike> | GLuint[];
|
|
13627
13770
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
@@ -13652,7 +13795,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
13652
13795
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13653
13796
|
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
13654
13797
|
type GPUAutoLayoutMode = "auto";
|
|
13655
|
-
type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "zero";
|
|
13798
|
+
type GPUBlendFactor = "constant" | "dst" | "dst-alpha" | "one" | "one-minus-constant" | "one-minus-dst" | "one-minus-dst-alpha" | "one-minus-src" | "one-minus-src-alpha" | "one-minus-src1" | "one-minus-src1-alpha" | "src" | "src-alpha" | "src-alpha-saturated" | "src1" | "src1-alpha" | "zero";
|
|
13656
13799
|
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
13657
13800
|
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
13658
13801
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
@@ -13663,7 +13806,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
|
13663
13806
|
type GPUCullMode = "back" | "front" | "none";
|
|
13664
13807
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13665
13808
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13666
|
-
type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "timestamp-query";
|
|
13809
|
+
type GPUFeatureName = "bgra8unorm-storage" | "clip-distances" | "core-features-and-limits" | "depth-clip-control" | "depth32float-stencil8" | "dual-source-blending" | "float32-blendable" | "float32-filterable" | "indirect-first-instance" | "primitive-index" | "rg11b10ufloat-renderable" | "shader-f16" | "subgroups" | "texture-component-swizzle" | "texture-compression-astc" | "texture-compression-astc-sliced-3d" | "texture-compression-bc" | "texture-compression-bc-sliced-3d" | "texture-compression-etc2" | "texture-formats-tier1" | "texture-formats-tier2" | "timestamp-query";
|
|
13667
13810
|
type GPUFilterMode = "linear" | "nearest";
|
|
13668
13811
|
type GPUFrontFace = "ccw" | "cw";
|
|
13669
13812
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
@@ -13719,6 +13862,8 @@ type RequestPriority = "auto" | "high" | "low";
|
|
|
13719
13862
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
13720
13863
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
13721
13864
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
|
13865
|
+
type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler";
|
|
13866
|
+
type RunningStatus = "not-running" | "running";
|
|
13722
13867
|
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
13723
13868
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
13724
13869
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
@@ -13913,6 +14058,15 @@ interface IDBObjectStore {
|
|
|
13913
14058
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
13914
14059
|
}
|
|
13915
14060
|
|
|
14061
|
+
interface InstallEvent {
|
|
14062
|
+
/**
|
|
14063
|
+
* The **`addRoutes()`** method of the InstallEvent interface specifies one or more static routes, which define rules for fetching specified resources that will be used even before service worker startup. This allows you to, for example, bypass a service worker in cases where you always want to fetch a resource from the network or a browser Cache, and avoids the performance overhead of unnecessary service worker cycles.
|
|
14064
|
+
*
|
|
14065
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes)
|
|
14066
|
+
*/
|
|
14067
|
+
addRoutes(rules: RouterRule | Iterable<RouterRule>): Promise<void>;
|
|
14068
|
+
}
|
|
14069
|
+
|
|
13916
14070
|
interface MessageEvent<T = any> {
|
|
13917
14071
|
/** @deprecated */
|
|
13918
14072
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|