@types/serviceworker 0.0.31 → 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 +55 -6
- 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
|
@@ -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 {
|
|
@@ -1452,6 +1464,41 @@ declare var FileReader: {
|
|
|
1452
1464
|
readonly LOADING: number;
|
|
1453
1465
|
};
|
|
1454
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
|
+
|
|
1455
1502
|
interface FontFace {
|
|
1456
1503
|
ascentOverride: string;
|
|
1457
1504
|
descentOverride: string;
|
|
@@ -2712,6 +2759,7 @@ declare var ServiceWorkerRegistration: {
|
|
|
2712
2759
|
/** Available only in secure contexts. */
|
|
2713
2760
|
interface StorageManager {
|
|
2714
2761
|
estimate(): Promise<StorageEstimate>;
|
|
2762
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
2715
2763
|
persisted(): Promise<boolean>;
|
|
2716
2764
|
}
|
|
2717
2765
|
|
|
@@ -5015,8 +5063,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
5015
5063
|
readonly performance: Performance;
|
|
5016
5064
|
atob(data: string): string;
|
|
5017
5065
|
btoa(data: string): string;
|
|
5018
|
-
clearInterval(
|
|
5019
|
-
clearTimeout(
|
|
5066
|
+
clearInterval(id?: number): void;
|
|
5067
|
+
clearTimeout(id?: number): void;
|
|
5020
5068
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5021
5069
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5022
5070
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5270,7 +5318,7 @@ declare namespace WebAssembly {
|
|
|
5270
5318
|
|
|
5271
5319
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
5272
5320
|
type TableKind = "anyfunc" | "externref";
|
|
5273
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
5321
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
5274
5322
|
type ExportValue = Function | Global | Memory | Table;
|
|
5275
5323
|
type Exports = Record<string, ExportValue>;
|
|
5276
5324
|
type ImportValue = ExportValue | number;
|
|
@@ -5380,8 +5428,8 @@ declare var origin: string;
|
|
|
5380
5428
|
declare var performance: Performance;
|
|
5381
5429
|
declare function atob(data: string): string;
|
|
5382
5430
|
declare function btoa(data: string): string;
|
|
5383
|
-
declare function clearInterval(
|
|
5384
|
-
declare function clearTimeout(
|
|
5431
|
+
declare function clearInterval(id?: number): void;
|
|
5432
|
+
declare function clearTimeout(id?: number): void;
|
|
5385
5433
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5386
5434
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5387
5435
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5444,6 +5492,7 @@ type ColorSpaceConversion = "default" | "none";
|
|
|
5444
5492
|
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5445
5493
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
5446
5494
|
type EndingType = "native" | "transparent";
|
|
5495
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
5447
5496
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5448
5497
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5449
5498
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|