@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/ts5.5/index.d.ts
CHANGED
|
@@ -533,8 +533,10 @@ interface GPURenderPipelineDescriptor extends GPUPipelineDescriptorBase {
|
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
interface GPURequestAdapterOptions {
|
|
536
|
+
featureLevel?: string;
|
|
536
537
|
forceFallbackAdapter?: boolean;
|
|
537
538
|
powerPreference?: GPUPowerPreference;
|
|
539
|
+
xrCompatible?: boolean;
|
|
538
540
|
}
|
|
539
541
|
|
|
540
542
|
interface GPUSamplerBindingLayout {
|
|
@@ -554,8 +556,14 @@ interface GPUSamplerDescriptor extends GPUObjectDescriptorBase {
|
|
|
554
556
|
mipmapFilter?: GPUMipmapFilterMode;
|
|
555
557
|
}
|
|
556
558
|
|
|
559
|
+
interface GPUShaderModuleCompilationHint {
|
|
560
|
+
entryPoint: string;
|
|
561
|
+
layout?: GPUPipelineLayout | GPUAutoLayoutMode;
|
|
562
|
+
}
|
|
563
|
+
|
|
557
564
|
interface GPUShaderModuleDescriptor extends GPUObjectDescriptorBase {
|
|
558
565
|
code: string;
|
|
566
|
+
compilationHints?: GPUShaderModuleCompilationHint[];
|
|
559
567
|
}
|
|
560
568
|
|
|
561
569
|
interface GPUStencilFaceState {
|
|
@@ -612,6 +620,7 @@ interface GPUTextureViewDescriptor extends GPUObjectDescriptorBase {
|
|
|
612
620
|
dimension?: GPUTextureViewDimension;
|
|
613
621
|
format?: GPUTextureFormat;
|
|
614
622
|
mipLevelCount?: GPUIntegerCoordinate;
|
|
623
|
+
swizzle?: string;
|
|
615
624
|
usage?: GPUTextureUsageFlags;
|
|
616
625
|
}
|
|
617
626
|
|
|
@@ -660,6 +669,12 @@ interface IDBDatabaseInfo {
|
|
|
660
669
|
version?: number;
|
|
661
670
|
}
|
|
662
671
|
|
|
672
|
+
interface IDBGetAllOptions {
|
|
673
|
+
count?: number;
|
|
674
|
+
direction?: IDBCursorDirection;
|
|
675
|
+
query?: any;
|
|
676
|
+
}
|
|
677
|
+
|
|
663
678
|
interface IDBIndexParameters {
|
|
664
679
|
multiEntry?: boolean;
|
|
665
680
|
unique?: boolean;
|
|
@@ -875,7 +890,12 @@ interface PushSubscriptionChangeEventInit extends ExtendableEventInit {
|
|
|
875
890
|
interface PushSubscriptionJSON {
|
|
876
891
|
endpoint?: string;
|
|
877
892
|
expirationTime?: EpochTimeStamp | null;
|
|
878
|
-
keys?:
|
|
893
|
+
keys?: PushSubscriptionKeys;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
interface PushSubscriptionKeys {
|
|
897
|
+
auth?: string;
|
|
898
|
+
p256dh?: string;
|
|
879
899
|
}
|
|
880
900
|
|
|
881
901
|
interface PushSubscriptionOptionsInit {
|
|
@@ -997,6 +1017,25 @@ interface ResponseInit {
|
|
|
997
1017
|
statusText?: string;
|
|
998
1018
|
}
|
|
999
1019
|
|
|
1020
|
+
interface RouterCondition {
|
|
1021
|
+
not?: RouterCondition;
|
|
1022
|
+
or?: RouterCondition[];
|
|
1023
|
+
requestDestination?: RequestDestination;
|
|
1024
|
+
requestMethod?: string;
|
|
1025
|
+
requestMode?: RequestMode;
|
|
1026
|
+
runningStatus?: RunningStatus;
|
|
1027
|
+
urlPattern?: URLPatternCompatible;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
interface RouterRule {
|
|
1031
|
+
condition: RouterCondition;
|
|
1032
|
+
source: RouterSource;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
interface RouterSourceDict {
|
|
1036
|
+
cacheName?: string;
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1000
1039
|
interface RsaHashedImportParams extends Algorithm {
|
|
1001
1040
|
hash: HashAlgorithmIdentifier;
|
|
1002
1041
|
}
|
|
@@ -1252,6 +1291,7 @@ interface WebTransportReceiveStreamStats {
|
|
|
1252
1291
|
}
|
|
1253
1292
|
|
|
1254
1293
|
interface WebTransportSendOptions {
|
|
1294
|
+
sendGroup?: WebTransportSendGroup | null;
|
|
1255
1295
|
sendOrder?: number;
|
|
1256
1296
|
}
|
|
1257
1297
|
|
|
@@ -6165,6 +6205,12 @@ interface IDBIndex {
|
|
|
6165
6205
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
|
|
6166
6206
|
*/
|
|
6167
6207
|
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
6208
|
+
/**
|
|
6209
|
+
* The **`getAllRecords()`** method of the IDBIndex interface retrieves all records (including index keys, primary keys, and values) from the index.
|
|
6210
|
+
*
|
|
6211
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllRecords)
|
|
6212
|
+
*/
|
|
6213
|
+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
|
|
6168
6214
|
/**
|
|
6169
6215
|
* 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.
|
|
6170
6216
|
*
|
|
@@ -6347,6 +6393,12 @@ interface IDBObjectStore {
|
|
|
6347
6393
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
|
|
6348
6394
|
*/
|
|
6349
6395
|
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
6396
|
+
/**
|
|
6397
|
+
* The **`getAllRecords()`** method of the IDBObjectStore interface retrieves all records (including primary keys and values) from the object store.
|
|
6398
|
+
*
|
|
6399
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllRecords)
|
|
6400
|
+
*/
|
|
6401
|
+
getAllRecords(options?: IDBGetAllOptions): IDBRequest;
|
|
6350
6402
|
/**
|
|
6351
6403
|
* 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.
|
|
6352
6404
|
*
|
|
@@ -6410,6 +6462,18 @@ declare var IDBOpenDBRequest: {
|
|
|
6410
6462
|
new(): IDBOpenDBRequest;
|
|
6411
6463
|
};
|
|
6412
6464
|
|
|
6465
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRecord) */
|
|
6466
|
+
interface IDBRecord {
|
|
6467
|
+
readonly key: any;
|
|
6468
|
+
readonly primaryKey: any;
|
|
6469
|
+
readonly value: any;
|
|
6470
|
+
}
|
|
6471
|
+
|
|
6472
|
+
declare var IDBRecord: {
|
|
6473
|
+
prototype: IDBRecord;
|
|
6474
|
+
new(): IDBRecord;
|
|
6475
|
+
};
|
|
6476
|
+
|
|
6413
6477
|
interface IDBRequestEventMap {
|
|
6414
6478
|
"error": Event;
|
|
6415
6479
|
"success": Event;
|
|
@@ -6661,6 +6725,25 @@ interface ImportMeta {
|
|
|
6661
6725
|
resolve(specifier: string): string;
|
|
6662
6726
|
}
|
|
6663
6727
|
|
|
6728
|
+
/**
|
|
6729
|
+
* 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.
|
|
6730
|
+
*
|
|
6731
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent)
|
|
6732
|
+
*/
|
|
6733
|
+
interface InstallEvent extends ExtendableEvent {
|
|
6734
|
+
/**
|
|
6735
|
+
* 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.
|
|
6736
|
+
*
|
|
6737
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes)
|
|
6738
|
+
*/
|
|
6739
|
+
addRoutes(rules: RouterRule | RouterRule[]): Promise<void>;
|
|
6740
|
+
}
|
|
6741
|
+
|
|
6742
|
+
declare var InstallEvent: {
|
|
6743
|
+
prototype: InstallEvent;
|
|
6744
|
+
new(type: string, eventInitDict?: ExtendableEventInit): InstallEvent;
|
|
6745
|
+
};
|
|
6746
|
+
|
|
6664
6747
|
/**
|
|
6665
6748
|
* 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.
|
|
6666
6749
|
*
|
|
@@ -7422,12 +7505,18 @@ interface Performance extends EventTarget {
|
|
|
7422
7505
|
*
|
|
7423
7506
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
|
|
7424
7507
|
*/
|
|
7508
|
+
getEntriesByName(name: string, type: "mark"): PerformanceMark[];
|
|
7509
|
+
getEntriesByName(name: string, type: "measure"): PerformanceMeasure[];
|
|
7510
|
+
getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[];
|
|
7425
7511
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
7426
7512
|
/**
|
|
7427
7513
|
* The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type.
|
|
7428
7514
|
*
|
|
7429
7515
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
|
|
7430
7516
|
*/
|
|
7517
|
+
getEntriesByType(type: "mark"): PerformanceMark[];
|
|
7518
|
+
getEntriesByType(type: "measure"): PerformanceMeasure[];
|
|
7519
|
+
getEntriesByType(type: "resource"): PerformanceResourceTiming[];
|
|
7431
7520
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
7432
7521
|
/**
|
|
7433
7522
|
* The **`mark()`** method creates a named PerformanceMark object representing a high resolution timestamp marker in the browser's performance timeline.
|
|
@@ -7605,12 +7694,18 @@ interface PerformanceObserverEntryList {
|
|
|
7605
7694
|
*
|
|
7606
7695
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
|
|
7607
7696
|
*/
|
|
7697
|
+
getEntriesByName(name: string, type: "mark"): PerformanceMark[];
|
|
7698
|
+
getEntriesByName(name: string, type: "measure"): PerformanceMeasure[];
|
|
7699
|
+
getEntriesByName(name: string, type: "resource"): PerformanceResourceTiming[];
|
|
7608
7700
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
7609
7701
|
/**
|
|
7610
7702
|
* 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).
|
|
7611
7703
|
*
|
|
7612
7704
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
|
|
7613
7705
|
*/
|
|
7706
|
+
getEntriesByType(type: "mark"): PerformanceMark[];
|
|
7707
|
+
getEntriesByType(type: "measure"): PerformanceMeasure[];
|
|
7708
|
+
getEntriesByType(type: "resource"): PerformanceResourceTiming[];
|
|
7614
7709
|
getEntriesByType(type: string): PerformanceEntryList;
|
|
7615
7710
|
}
|
|
7616
7711
|
|
|
@@ -7757,6 +7852,8 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
7757
7852
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
|
|
7758
7853
|
*/
|
|
7759
7854
|
readonly transferSize: number;
|
|
7855
|
+
readonly workerCacheLookupStart: DOMHighResTimeStamp;
|
|
7856
|
+
readonly workerRouterEvaluationStart: DOMHighResTimeStamp;
|
|
7760
7857
|
/**
|
|
7761
7858
|
* 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.
|
|
7762
7859
|
*
|
|
@@ -8213,6 +8310,12 @@ declare var ReadableStream: {
|
|
|
8213
8310
|
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
8214
8311
|
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
8215
8312
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
8313
|
+
/**
|
|
8314
|
+
* The **`ReadableStream.from()`** static method returns a ReadableStream from a provided iterable or async iterable object.
|
|
8315
|
+
*
|
|
8316
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/from_static)
|
|
8317
|
+
*/
|
|
8318
|
+
from(asyncIterable: Iterable<any>): ReadableStream;
|
|
8216
8319
|
};
|
|
8217
8320
|
|
|
8218
8321
|
/**
|
|
@@ -8558,7 +8661,7 @@ interface Scheduler {
|
|
|
8558
8661
|
*
|
|
8559
8662
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/postTask)
|
|
8560
8663
|
*/
|
|
8561
|
-
postTask(callback: SchedulerPostTaskCallback
|
|
8664
|
+
postTask<T = any>(callback: SchedulerPostTaskCallback<T>, options?: SchedulerPostTaskOptions): Promise<T>;
|
|
8562
8665
|
/**
|
|
8563
8666
|
* 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.
|
|
8564
8667
|
*
|
|
@@ -12297,6 +12400,7 @@ interface WebTransport {
|
|
|
12297
12400
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams)
|
|
12298
12401
|
*/
|
|
12299
12402
|
readonly datagrams: WebTransportDatagramDuplexStream;
|
|
12403
|
+
readonly draining: Promise<void>;
|
|
12300
12404
|
/**
|
|
12301
12405
|
* 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.
|
|
12302
12406
|
*
|
|
@@ -12334,6 +12438,8 @@ interface WebTransport {
|
|
|
12334
12438
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream)
|
|
12335
12439
|
*/
|
|
12336
12440
|
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
|
|
12441
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createSendGroup) */
|
|
12442
|
+
createSendGroup(): WebTransportSendGroup;
|
|
12337
12443
|
/**
|
|
12338
12444
|
* The **`createUnidirectionalStream()`** method of the WebTransport interface asynchronously opens a unidirectional stream.
|
|
12339
12445
|
*
|
|
@@ -12428,6 +12534,8 @@ interface WebTransportDatagramDuplexStream {
|
|
|
12428
12534
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
|
|
12429
12535
|
*/
|
|
12430
12536
|
readonly writable: WritableStream;
|
|
12537
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/createWritable) */
|
|
12538
|
+
createWritable(options?: WebTransportSendOptions): WebTransportDatagramsWritable;
|
|
12431
12539
|
}
|
|
12432
12540
|
|
|
12433
12541
|
declare var WebTransportDatagramDuplexStream: {
|
|
@@ -12435,6 +12543,23 @@ declare var WebTransportDatagramDuplexStream: {
|
|
|
12435
12543
|
new(): WebTransportDatagramDuplexStream;
|
|
12436
12544
|
};
|
|
12437
12545
|
|
|
12546
|
+
/**
|
|
12547
|
+
* Available only in secure contexts.
|
|
12548
|
+
*
|
|
12549
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable)
|
|
12550
|
+
*/
|
|
12551
|
+
interface WebTransportDatagramsWritable extends WritableStream {
|
|
12552
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendGroup) */
|
|
12553
|
+
sendGroup: WebTransportSendGroup | null;
|
|
12554
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramsWritable/sendOrder) */
|
|
12555
|
+
sendOrder: number;
|
|
12556
|
+
}
|
|
12557
|
+
|
|
12558
|
+
declare var WebTransportDatagramsWritable: {
|
|
12559
|
+
prototype: WebTransportDatagramsWritable;
|
|
12560
|
+
new(): WebTransportDatagramsWritable;
|
|
12561
|
+
};
|
|
12562
|
+
|
|
12438
12563
|
/**
|
|
12439
12564
|
* 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).
|
|
12440
12565
|
* Available only in secure contexts.
|
|
@@ -12481,6 +12606,21 @@ declare var WebTransportReceiveStream: {
|
|
|
12481
12606
|
new(): WebTransportReceiveStream;
|
|
12482
12607
|
};
|
|
12483
12608
|
|
|
12609
|
+
/**
|
|
12610
|
+
* Available only in secure contexts.
|
|
12611
|
+
*
|
|
12612
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup)
|
|
12613
|
+
*/
|
|
12614
|
+
interface WebTransportSendGroup {
|
|
12615
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendGroup/getStats) */
|
|
12616
|
+
getStats(): Promise<WebTransportSendStreamStats>;
|
|
12617
|
+
}
|
|
12618
|
+
|
|
12619
|
+
declare var WebTransportSendGroup: {
|
|
12620
|
+
prototype: WebTransportSendGroup;
|
|
12621
|
+
new(): WebTransportSendGroup;
|
|
12622
|
+
};
|
|
12623
|
+
|
|
12484
12624
|
/**
|
|
12485
12625
|
* 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.
|
|
12486
12626
|
* Available only in secure contexts.
|
|
@@ -12488,6 +12628,7 @@ declare var WebTransportReceiveStream: {
|
|
|
12488
12628
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportSendStream)
|
|
12489
12629
|
*/
|
|
12490
12630
|
interface WebTransportSendStream extends WritableStream {
|
|
12631
|
+
sendGroup: WebTransportSendGroup | null;
|
|
12491
12632
|
/**
|
|
12492
12633
|
* 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.
|
|
12493
12634
|
*
|
|
@@ -13349,8 +13490,8 @@ interface ReportingObserverCallback {
|
|
|
13349
13490
|
(reports: Report[], observer: ReportingObserver): void;
|
|
13350
13491
|
}
|
|
13351
13492
|
|
|
13352
|
-
interface SchedulerPostTaskCallback {
|
|
13353
|
-
():
|
|
13493
|
+
interface SchedulerPostTaskCallback<T = any> {
|
|
13494
|
+
(): T | PromiseLike<T>;
|
|
13354
13495
|
}
|
|
13355
13496
|
|
|
13356
13497
|
interface TransformerFlushCallback<O> {
|
|
@@ -13549,7 +13690,7 @@ type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView;
|
|
|
13549
13690
|
type BigInteger = Uint8Array;
|
|
13550
13691
|
type BlobPart = BufferSource | Blob | string;
|
|
13551
13692
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
13552
|
-
type BufferSource =
|
|
13693
|
+
type BufferSource = ArrayBuffer | ArrayBufferView;
|
|
13553
13694
|
type CSSKeywordish = string | CSSKeywordValue;
|
|
13554
13695
|
type CSSNumberish = number | CSSNumericValue;
|
|
13555
13696
|
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
|
|
@@ -13616,9 +13757,11 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
|
|
|
13616
13757
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
13617
13758
|
type ReportList = Report[];
|
|
13618
13759
|
type RequestInfo = Request | string;
|
|
13760
|
+
type RouterSource = RouterSourceDict | RouterSourceEnum;
|
|
13619
13761
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
13620
13762
|
type TimerHandler = string | Function;
|
|
13621
|
-
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
13763
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | WebTransportDatagramsWritable | ArrayBuffer;
|
|
13764
|
+
type URLPatternCompatible = string | URLPatternInit | URLPattern;
|
|
13622
13765
|
type URLPatternInput = string | URLPatternInit;
|
|
13623
13766
|
type Uint32List = Uint32Array | GLuint[];
|
|
13624
13767
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
@@ -13649,7 +13792,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
|
13649
13792
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
13650
13793
|
type GPUAddressMode = "clamp-to-edge" | "mirror-repeat" | "repeat";
|
|
13651
13794
|
type GPUAutoLayoutMode = "auto";
|
|
13652
|
-
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";
|
|
13795
|
+
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";
|
|
13653
13796
|
type GPUBlendOperation = "add" | "max" | "min" | "reverse-subtract" | "subtract";
|
|
13654
13797
|
type GPUBufferBindingType = "read-only-storage" | "storage" | "uniform";
|
|
13655
13798
|
type GPUBufferMapState = "mapped" | "pending" | "unmapped";
|
|
@@ -13660,7 +13803,7 @@ type GPUCompilationMessageType = "error" | "info" | "warning";
|
|
|
13660
13803
|
type GPUCullMode = "back" | "front" | "none";
|
|
13661
13804
|
type GPUDeviceLostReason = "destroyed" | "unknown";
|
|
13662
13805
|
type GPUErrorFilter = "internal" | "out-of-memory" | "validation";
|
|
13663
|
-
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";
|
|
13806
|
+
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";
|
|
13664
13807
|
type GPUFilterMode = "linear" | "nearest";
|
|
13665
13808
|
type GPUFrontFace = "ccw" | "cw";
|
|
13666
13809
|
type GPUIndexFormat = "uint16" | "uint32";
|
|
@@ -13716,6 +13859,8 @@ type RequestPriority = "auto" | "high" | "low";
|
|
|
13716
13859
|
type RequestRedirect = "error" | "follow" | "manual";
|
|
13717
13860
|
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
|
|
13718
13861
|
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
|
|
13862
|
+
type RouterSourceEnum = "cache" | "fetch-event" | "network" | "race-network-and-fetch-handler";
|
|
13863
|
+
type RunningStatus = "not-running" | "running";
|
|
13719
13864
|
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
13720
13865
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
13721
13866
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -171,6 +171,15 @@ interface IDBObjectStore {
|
|
|
171
171
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
+
interface InstallEvent {
|
|
175
|
+
/**
|
|
176
|
+
* 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.
|
|
177
|
+
*
|
|
178
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InstallEvent/addRoutes)
|
|
179
|
+
*/
|
|
180
|
+
addRoutes(rules: RouterRule | Iterable<RouterRule>): Promise<void>;
|
|
181
|
+
}
|
|
182
|
+
|
|
174
183
|
interface MessageEvent<T = any> {
|
|
175
184
|
/** @deprecated */
|
|
176
185
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|