@types/sharedworker 0.0.60 → 0.0.61

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +55 -6
  3. 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.60 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.60.
31
+ You can read what changed in version 0.0.61 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.61.
package/index.d.ts CHANGED
@@ -167,6 +167,18 @@ interface FilePropertyBag extends BlobPropertyBag {
167
167
  lastModified?: number;
168
168
  }
169
169
 
170
+ interface FileSystemGetDirectoryOptions {
171
+ create?: boolean;
172
+ }
173
+
174
+ interface FileSystemGetFileOptions {
175
+ create?: boolean;
176
+ }
177
+
178
+ interface FileSystemRemoveOptions {
179
+ recursive?: boolean;
180
+ }
181
+
170
182
  interface FontFaceDescriptors {
171
183
  display?: string;
172
184
  featureSettings?: string;
@@ -526,7 +538,7 @@ interface StreamPipeOptions {
526
538
  }
527
539
 
528
540
  interface StructuredSerializeOptions {
529
- transfer?: any[];
541
+ transfer?: Transferable[];
530
542
  }
531
543
 
532
544
  interface TextDecodeOptions {
@@ -1372,6 +1384,41 @@ declare var FileReaderSync: {
1372
1384
  new(): FileReaderSync;
1373
1385
  };
1374
1386
 
1387
+ /** Available only in secure contexts. */
1388
+ interface FileSystemDirectoryHandle extends FileSystemHandle {
1389
+ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
1390
+ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
1391
+ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
1392
+ resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
1393
+ }
1394
+
1395
+ declare var FileSystemDirectoryHandle: {
1396
+ prototype: FileSystemDirectoryHandle;
1397
+ new(): FileSystemDirectoryHandle;
1398
+ };
1399
+
1400
+ /** Available only in secure contexts. */
1401
+ interface FileSystemFileHandle extends FileSystemHandle {
1402
+ getFile(): Promise<File>;
1403
+ }
1404
+
1405
+ declare var FileSystemFileHandle: {
1406
+ prototype: FileSystemFileHandle;
1407
+ new(): FileSystemFileHandle;
1408
+ };
1409
+
1410
+ /** Available only in secure contexts. */
1411
+ interface FileSystemHandle {
1412
+ readonly kind: FileSystemHandleKind;
1413
+ readonly name: string;
1414
+ isSameEntry(other: FileSystemHandle): Promise<boolean>;
1415
+ }
1416
+
1417
+ declare var FileSystemHandle: {
1418
+ prototype: FileSystemHandle;
1419
+ new(): FileSystemHandle;
1420
+ };
1421
+
1375
1422
  interface FontFace {
1376
1423
  ascentOverride: string;
1377
1424
  descentOverride: string;
@@ -2578,6 +2625,7 @@ declare var SharedWorkerGlobalScope: {
2578
2625
  /** Available only in secure contexts. */
2579
2626
  interface StorageManager {
2580
2627
  estimate(): Promise<StorageEstimate>;
2628
+ getDirectory(): Promise<FileSystemDirectoryHandle>;
2581
2629
  persisted(): Promise<boolean>;
2582
2630
  }
2583
2631
 
@@ -4870,8 +4918,8 @@ interface WindowOrWorkerGlobalScope {
4870
4918
  readonly performance: Performance;
4871
4919
  atob(data: string): string;
4872
4920
  btoa(data: string): string;
4873
- clearInterval(handle?: number): void;
4874
- clearTimeout(handle?: number): void;
4921
+ clearInterval(id?: number): void;
4922
+ clearTimeout(id?: number): void;
4875
4923
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
4876
4924
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
4877
4925
  fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
@@ -5293,7 +5341,7 @@ declare namespace WebAssembly {
5293
5341
 
5294
5342
  type ImportExportKind = "function" | "global" | "memory" | "table";
5295
5343
  type TableKind = "anyfunc" | "externref";
5296
- type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
5344
+ type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
5297
5345
  type ExportValue = Function | Global | Memory | Table;
5298
5346
  type Exports = Record<string, ExportValue>;
5299
5347
  type ImportValue = ExportValue | number;
@@ -5397,8 +5445,8 @@ declare var origin: string;
5397
5445
  declare var performance: Performance;
5398
5446
  declare function atob(data: string): string;
5399
5447
  declare function btoa(data: string): string;
5400
- declare function clearInterval(handle?: number): void;
5401
- declare function clearTimeout(handle?: number): void;
5448
+ declare function clearInterval(id?: number): void;
5449
+ declare function clearTimeout(id?: number): void;
5402
5450
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5403
5451
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5404
5452
  declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
@@ -5459,6 +5507,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
5459
5507
  type ColorSpaceConversion = "default" | "none";
5460
5508
  type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
5461
5509
  type EndingType = "native" | "transparent";
5510
+ type FileSystemHandleKind = "directory" | "file";
5462
5511
  type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
5463
5512
  type FontFaceSetLoadStatus = "loaded" | "loading";
5464
5513
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "MIT",
6
6
  "contributors": [],