@types/serviceworker 0.0.28 → 0.0.32
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 +72 -12
- package/iterable.d.ts +7 -0
- package/package.json +1 -1
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.32 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.32.
|
package/index.d.ts
CHANGED
|
@@ -72,8 +72,8 @@ interface CloseEventInit extends EventInit {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
interface CryptoKeyPair {
|
|
75
|
-
privateKey
|
|
76
|
-
publicKey
|
|
75
|
+
privateKey: CryptoKey;
|
|
76
|
+
publicKey: CryptoKey;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
interface CustomEventInit<T = any> extends EventInit {
|
|
@@ -192,6 +192,18 @@ interface FilePropertyBag extends BlobPropertyBag {
|
|
|
192
192
|
lastModified?: number;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
interface FileSystemGetDirectoryOptions {
|
|
196
|
+
create?: boolean;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
interface FileSystemGetFileOptions {
|
|
200
|
+
create?: boolean;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
interface FileSystemRemoveOptions {
|
|
204
|
+
recursive?: boolean;
|
|
205
|
+
}
|
|
206
|
+
|
|
195
207
|
interface FontFaceDescriptors {
|
|
196
208
|
display?: string;
|
|
197
209
|
featureSettings?: string;
|
|
@@ -560,7 +572,7 @@ interface StreamPipeOptions {
|
|
|
560
572
|
}
|
|
561
573
|
|
|
562
574
|
interface StructuredSerializeOptions {
|
|
563
|
-
transfer?:
|
|
575
|
+
transfer?: Transferable[];
|
|
564
576
|
}
|
|
565
577
|
|
|
566
578
|
interface TextDecodeOptions {
|
|
@@ -641,7 +653,7 @@ interface AbortController {
|
|
|
641
653
|
/** Returns the AbortSignal object associated with this object. */
|
|
642
654
|
readonly signal: AbortSignal;
|
|
643
655
|
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
|
644
|
-
abort(): void;
|
|
656
|
+
abort(reason?: any): void;
|
|
645
657
|
}
|
|
646
658
|
|
|
647
659
|
declare var AbortController: {
|
|
@@ -667,7 +679,7 @@ interface AbortSignal extends EventTarget {
|
|
|
667
679
|
declare var AbortSignal: {
|
|
668
680
|
prototype: AbortSignal;
|
|
669
681
|
new(): AbortSignal;
|
|
670
|
-
|
|
682
|
+
abort(reason?: any): AbortSignal;
|
|
671
683
|
};
|
|
672
684
|
|
|
673
685
|
interface AbstractWorkerEventMap {
|
|
@@ -876,6 +888,8 @@ interface Crypto {
|
|
|
876
888
|
/** Available only in secure contexts. */
|
|
877
889
|
readonly subtle: SubtleCrypto;
|
|
878
890
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
891
|
+
/** Available only in secure contexts. */
|
|
892
|
+
randomUUID(): string;
|
|
879
893
|
}
|
|
880
894
|
|
|
881
895
|
declare var Crypto: {
|
|
@@ -1450,6 +1464,41 @@ declare var FileReader: {
|
|
|
1450
1464
|
readonly LOADING: number;
|
|
1451
1465
|
};
|
|
1452
1466
|
|
|
1467
|
+
/** Available only in secure contexts. */
|
|
1468
|
+
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
1469
|
+
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
1470
|
+
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
1471
|
+
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
1472
|
+
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
declare var FileSystemDirectoryHandle: {
|
|
1476
|
+
prototype: FileSystemDirectoryHandle;
|
|
1477
|
+
new(): FileSystemDirectoryHandle;
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
/** Available only in secure contexts. */
|
|
1481
|
+
interface FileSystemFileHandle extends FileSystemHandle {
|
|
1482
|
+
getFile(): Promise<File>;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
declare var FileSystemFileHandle: {
|
|
1486
|
+
prototype: FileSystemFileHandle;
|
|
1487
|
+
new(): FileSystemFileHandle;
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
/** Available only in secure contexts. */
|
|
1491
|
+
interface FileSystemHandle {
|
|
1492
|
+
readonly kind: FileSystemHandleKind;
|
|
1493
|
+
readonly name: string;
|
|
1494
|
+
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
declare var FileSystemHandle: {
|
|
1498
|
+
prototype: FileSystemHandle;
|
|
1499
|
+
new(): FileSystemHandle;
|
|
1500
|
+
};
|
|
1501
|
+
|
|
1453
1502
|
interface FontFace {
|
|
1454
1503
|
ascentOverride: string;
|
|
1455
1504
|
descentOverride: string;
|
|
@@ -1913,6 +1962,7 @@ interface IDBTransactionEventMap {
|
|
|
1913
1962
|
interface IDBTransaction extends EventTarget {
|
|
1914
1963
|
/** Returns the transaction's connection. */
|
|
1915
1964
|
readonly db: IDBDatabase;
|
|
1965
|
+
readonly durability: IDBTransactionDurability;
|
|
1916
1966
|
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
1917
1967
|
readonly error: DOMException | null;
|
|
1918
1968
|
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
@@ -2709,6 +2759,7 @@ declare var ServiceWorkerRegistration: {
|
|
|
2709
2759
|
/** Available only in secure contexts. */
|
|
2710
2760
|
interface StorageManager {
|
|
2711
2761
|
estimate(): Promise<StorageEstimate>;
|
|
2762
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
2712
2763
|
persisted(): Promise<boolean>;
|
|
2713
2764
|
}
|
|
2714
2765
|
|
|
@@ -3043,6 +3094,13 @@ interface WEBGL_lose_context {
|
|
|
3043
3094
|
restoreContext(): void;
|
|
3044
3095
|
}
|
|
3045
3096
|
|
|
3097
|
+
interface WEBGL_multi_draw {
|
|
3098
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3099
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
|
3100
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3101
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3046
3104
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
3047
3105
|
}
|
|
3048
3106
|
|
|
@@ -4984,7 +5042,7 @@ declare var WebSocket: {
|
|
|
4984
5042
|
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
|
|
4985
5043
|
interface WindowClient extends Client {
|
|
4986
5044
|
readonly focused: boolean;
|
|
4987
|
-
readonly visibilityState:
|
|
5045
|
+
readonly visibilityState: DocumentVisibilityState;
|
|
4988
5046
|
focus(): Promise<WindowClient>;
|
|
4989
5047
|
navigate(url: string | URL): Promise<WindowClient | null>;
|
|
4990
5048
|
}
|
|
@@ -5005,8 +5063,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
5005
5063
|
readonly performance: Performance;
|
|
5006
5064
|
atob(data: string): string;
|
|
5007
5065
|
btoa(data: string): string;
|
|
5008
|
-
clearInterval(
|
|
5009
|
-
clearTimeout(
|
|
5066
|
+
clearInterval(id?: number): void;
|
|
5067
|
+
clearTimeout(id?: number): void;
|
|
5010
5068
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5011
5069
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5012
5070
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5260,7 +5318,7 @@ declare namespace WebAssembly {
|
|
|
5260
5318
|
|
|
5261
5319
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
5262
5320
|
type TableKind = "anyfunc" | "externref";
|
|
5263
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
5321
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
5264
5322
|
type ExportValue = Function | Global | Memory | Table;
|
|
5265
5323
|
type Exports = Record<string, ExportValue>;
|
|
5266
5324
|
type ImportValue = ExportValue | number;
|
|
@@ -5370,8 +5428,8 @@ declare var origin: string;
|
|
|
5370
5428
|
declare var performance: Performance;
|
|
5371
5429
|
declare function atob(data: string): string;
|
|
5372
5430
|
declare function btoa(data: string): string;
|
|
5373
|
-
declare function clearInterval(
|
|
5374
|
-
declare function clearTimeout(
|
|
5431
|
+
declare function clearInterval(id?: number): void;
|
|
5432
|
+
declare function clearTimeout(id?: number): void;
|
|
5375
5433
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5376
5434
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5377
5435
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5432,13 +5490,16 @@ type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
|
5432
5490
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5433
5491
|
type ColorSpaceConversion = "default" | "none";
|
|
5434
5492
|
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5493
|
+
type DocumentVisibilityState = "hidden" | "visible";
|
|
5435
5494
|
type EndingType = "native" | "transparent";
|
|
5495
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
5436
5496
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5437
5497
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5438
5498
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
5439
5499
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5440
5500
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5441
5501
|
type IDBRequestReadyState = "done" | "pending";
|
|
5502
|
+
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5442
5503
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5443
5504
|
type ImageOrientation = "flipY" | "none";
|
|
5444
5505
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
@@ -5465,6 +5526,5 @@ type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
|
5465
5526
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
5466
5527
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
5467
5528
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
5468
|
-
type VisibilityState = "hidden" | "visible";
|
|
5469
5529
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
5470
5530
|
type WorkerType = "classic" | "module";
|
package/iterable.d.ts
CHANGED
|
@@ -80,6 +80,13 @@ interface WEBGL_draw_buffers {
|
|
|
80
80
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
interface WEBGL_multi_draw {
|
|
84
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
85
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
|
86
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
87
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
88
|
+
}
|
|
89
|
+
|
|
83
90
|
interface WebGL2RenderingContextBase {
|
|
84
91
|
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
|
|
85
92
|
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
|