@types/sharedworker 0.0.59 → 0.0.63
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 +103 -8
- 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.63 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.63.
|
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;
|
|
@@ -267,6 +279,24 @@ interface KeyAlgorithm {
|
|
|
267
279
|
name: string;
|
|
268
280
|
}
|
|
269
281
|
|
|
282
|
+
interface LockInfo {
|
|
283
|
+
clientId?: string;
|
|
284
|
+
mode?: LockMode;
|
|
285
|
+
name?: string;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
interface LockManagerSnapshot {
|
|
289
|
+
held?: LockInfo[];
|
|
290
|
+
pending?: LockInfo[];
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
interface LockOptions {
|
|
294
|
+
ifAvailable?: boolean;
|
|
295
|
+
mode?: LockMode;
|
|
296
|
+
signal?: AbortSignal;
|
|
297
|
+
steal?: boolean;
|
|
298
|
+
}
|
|
299
|
+
|
|
270
300
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
271
301
|
configuration?: MediaDecodingConfiguration;
|
|
272
302
|
}
|
|
@@ -526,7 +556,7 @@ interface StreamPipeOptions {
|
|
|
526
556
|
}
|
|
527
557
|
|
|
528
558
|
interface StructuredSerializeOptions {
|
|
529
|
-
transfer?:
|
|
559
|
+
transfer?: Transferable[];
|
|
530
560
|
}
|
|
531
561
|
|
|
532
562
|
interface TextDecodeOptions {
|
|
@@ -613,7 +643,7 @@ interface AbortController {
|
|
|
613
643
|
/** Returns the AbortSignal object associated with this object. */
|
|
614
644
|
readonly signal: AbortSignal;
|
|
615
645
|
/** 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. */
|
|
616
|
-
abort(): void;
|
|
646
|
+
abort(reason?: any): void;
|
|
617
647
|
}
|
|
618
648
|
|
|
619
649
|
declare var AbortController: {
|
|
@@ -639,7 +669,7 @@ interface AbortSignal extends EventTarget {
|
|
|
639
669
|
declare var AbortSignal: {
|
|
640
670
|
prototype: AbortSignal;
|
|
641
671
|
new(): AbortSignal;
|
|
642
|
-
// abort(): AbortSignal; - To be re-added in the future
|
|
672
|
+
// abort(reason?: any): AbortSignal; - To be re-added in the future
|
|
643
673
|
};
|
|
644
674
|
|
|
645
675
|
interface AbstractWorkerEventMap {
|
|
@@ -1372,6 +1402,41 @@ declare var FileReaderSync: {
|
|
|
1372
1402
|
new(): FileReaderSync;
|
|
1373
1403
|
};
|
|
1374
1404
|
|
|
1405
|
+
/** Available only in secure contexts. */
|
|
1406
|
+
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
1407
|
+
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
1408
|
+
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
1409
|
+
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
1410
|
+
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
declare var FileSystemDirectoryHandle: {
|
|
1414
|
+
prototype: FileSystemDirectoryHandle;
|
|
1415
|
+
new(): FileSystemDirectoryHandle;
|
|
1416
|
+
};
|
|
1417
|
+
|
|
1418
|
+
/** Available only in secure contexts. */
|
|
1419
|
+
interface FileSystemFileHandle extends FileSystemHandle {
|
|
1420
|
+
getFile(): Promise<File>;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
declare var FileSystemFileHandle: {
|
|
1424
|
+
prototype: FileSystemFileHandle;
|
|
1425
|
+
new(): FileSystemFileHandle;
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
/** Available only in secure contexts. */
|
|
1429
|
+
interface FileSystemHandle {
|
|
1430
|
+
readonly kind: FileSystemHandleKind;
|
|
1431
|
+
readonly name: string;
|
|
1432
|
+
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
declare var FileSystemHandle: {
|
|
1436
|
+
prototype: FileSystemHandle;
|
|
1437
|
+
new(): FileSystemHandle;
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1375
1440
|
interface FontFace {
|
|
1376
1441
|
ascentOverride: string;
|
|
1377
1442
|
descentOverride: string;
|
|
@@ -1916,6 +1981,29 @@ interface KHR_parallel_shader_compile {
|
|
|
1916
1981
|
readonly COMPLETION_STATUS_KHR: GLenum;
|
|
1917
1982
|
}
|
|
1918
1983
|
|
|
1984
|
+
/** Available only in secure contexts. */
|
|
1985
|
+
interface Lock {
|
|
1986
|
+
readonly mode: LockMode;
|
|
1987
|
+
readonly name: string;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
declare var Lock: {
|
|
1991
|
+
prototype: Lock;
|
|
1992
|
+
new(): Lock;
|
|
1993
|
+
};
|
|
1994
|
+
|
|
1995
|
+
/** Available only in secure contexts. */
|
|
1996
|
+
interface LockManager {
|
|
1997
|
+
query(): Promise<LockManagerSnapshot>;
|
|
1998
|
+
request(name: string, callback: LockGrantedCallback): Promise<any>;
|
|
1999
|
+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
declare var LockManager: {
|
|
2003
|
+
prototype: LockManager;
|
|
2004
|
+
new(): LockManager;
|
|
2005
|
+
};
|
|
2006
|
+
|
|
1919
2007
|
interface MediaCapabilities {
|
|
1920
2008
|
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
1921
2009
|
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
|
|
@@ -2578,6 +2666,7 @@ declare var SharedWorkerGlobalScope: {
|
|
|
2578
2666
|
/** Available only in secure contexts. */
|
|
2579
2667
|
interface StorageManager {
|
|
2580
2668
|
estimate(): Promise<StorageEstimate>;
|
|
2669
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
2581
2670
|
persisted(): Promise<boolean>;
|
|
2582
2671
|
}
|
|
2583
2672
|
|
|
@@ -4870,8 +4959,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
4870
4959
|
readonly performance: Performance;
|
|
4871
4960
|
atob(data: string): string;
|
|
4872
4961
|
btoa(data: string): string;
|
|
4873
|
-
clearInterval(
|
|
4874
|
-
clearTimeout(
|
|
4962
|
+
clearInterval(id?: number): void;
|
|
4963
|
+
clearTimeout(id?: number): void;
|
|
4875
4964
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4876
4965
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4877
4966
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5293,7 +5382,7 @@ declare namespace WebAssembly {
|
|
|
5293
5382
|
|
|
5294
5383
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
5295
5384
|
type TableKind = "anyfunc" | "externref";
|
|
5296
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
5385
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
5297
5386
|
type ExportValue = Function | Global | Memory | Table;
|
|
5298
5387
|
type Exports = Record<string, ExportValue>;
|
|
5299
5388
|
type ImportValue = ExportValue | number;
|
|
@@ -5307,6 +5396,10 @@ declare namespace WebAssembly {
|
|
|
5307
5396
|
function validate(bytes: BufferSource): boolean;
|
|
5308
5397
|
}
|
|
5309
5398
|
|
|
5399
|
+
interface LockGrantedCallback {
|
|
5400
|
+
(lock: Lock | null): any;
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5310
5403
|
interface OnErrorEventHandlerNonNull {
|
|
5311
5404
|
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
|
|
5312
5405
|
}
|
|
@@ -5397,8 +5490,8 @@ declare var origin: string;
|
|
|
5397
5490
|
declare var performance: Performance;
|
|
5398
5491
|
declare function atob(data: string): string;
|
|
5399
5492
|
declare function btoa(data: string): string;
|
|
5400
|
-
declare function clearInterval(
|
|
5401
|
-
declare function clearTimeout(
|
|
5493
|
+
declare function clearInterval(id?: number): void;
|
|
5494
|
+
declare function clearTimeout(id?: number): void;
|
|
5402
5495
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5403
5496
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5404
5497
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5459,6 +5552,7 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
|
5459
5552
|
type ColorSpaceConversion = "default" | "none";
|
|
5460
5553
|
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5461
5554
|
type EndingType = "native" | "transparent";
|
|
5555
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
5462
5556
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5463
5557
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5464
5558
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
@@ -5470,6 +5564,7 @@ type ImageOrientation = "flipY" | "none";
|
|
|
5470
5564
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5471
5565
|
type KeyType = "private" | "public" | "secret";
|
|
5472
5566
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
5567
|
+
type LockMode = "exclusive" | "shared";
|
|
5473
5568
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
5474
5569
|
type MediaEncodingType = "record" | "webrtc";
|
|
5475
5570
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|