@types/sharedworker 0.0.57 → 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.
- package/README.md +1 -1
- package/index.d.ts +70 -10
- 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.61 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.61.
|
package/index.d.ts
CHANGED
|
@@ -67,8 +67,8 @@ interface CloseEventInit extends EventInit {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
interface CryptoKeyPair {
|
|
70
|
-
privateKey
|
|
71
|
-
publicKey
|
|
70
|
+
privateKey: CryptoKey;
|
|
71
|
+
publicKey: CryptoKey;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
interface CustomEventInit<T = any> extends EventInit {
|
|
@@ -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?:
|
|
541
|
+
transfer?: Transferable[];
|
|
530
542
|
}
|
|
531
543
|
|
|
532
544
|
interface TextDecodeOptions {
|
|
@@ -613,7 +625,7 @@ interface AbortController {
|
|
|
613
625
|
/** Returns the AbortSignal object associated with this object. */
|
|
614
626
|
readonly signal: AbortSignal;
|
|
615
627
|
/** 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;
|
|
628
|
+
abort(reason?: any): void;
|
|
617
629
|
}
|
|
618
630
|
|
|
619
631
|
declare var AbortController: {
|
|
@@ -639,7 +651,7 @@ interface AbortSignal extends EventTarget {
|
|
|
639
651
|
declare var AbortSignal: {
|
|
640
652
|
prototype: AbortSignal;
|
|
641
653
|
new(): AbortSignal;
|
|
642
|
-
|
|
654
|
+
abort(reason?: any): AbortSignal;
|
|
643
655
|
};
|
|
644
656
|
|
|
645
657
|
interface AbstractWorkerEventMap {
|
|
@@ -820,6 +832,8 @@ interface Crypto {
|
|
|
820
832
|
/** Available only in secure contexts. */
|
|
821
833
|
readonly subtle: SubtleCrypto;
|
|
822
834
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
835
|
+
/** Available only in secure contexts. */
|
|
836
|
+
randomUUID(): string;
|
|
823
837
|
}
|
|
824
838
|
|
|
825
839
|
declare var Crypto: {
|
|
@@ -1370,6 +1384,41 @@ declare var FileReaderSync: {
|
|
|
1370
1384
|
new(): FileReaderSync;
|
|
1371
1385
|
};
|
|
1372
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
|
+
|
|
1373
1422
|
interface FontFace {
|
|
1374
1423
|
ascentOverride: string;
|
|
1375
1424
|
descentOverride: string;
|
|
@@ -1833,6 +1882,7 @@ interface IDBTransactionEventMap {
|
|
|
1833
1882
|
interface IDBTransaction extends EventTarget {
|
|
1834
1883
|
/** Returns the transaction's connection. */
|
|
1835
1884
|
readonly db: IDBDatabase;
|
|
1885
|
+
readonly durability: IDBTransactionDurability;
|
|
1836
1886
|
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
1837
1887
|
readonly error: DOMException | null;
|
|
1838
1888
|
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
@@ -2575,6 +2625,7 @@ declare var SharedWorkerGlobalScope: {
|
|
|
2575
2625
|
/** Available only in secure contexts. */
|
|
2576
2626
|
interface StorageManager {
|
|
2577
2627
|
estimate(): Promise<StorageEstimate>;
|
|
2628
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
2578
2629
|
persisted(): Promise<boolean>;
|
|
2579
2630
|
}
|
|
2580
2631
|
|
|
@@ -2911,6 +2962,13 @@ interface WEBGL_lose_context {
|
|
|
2911
2962
|
restoreContext(): void;
|
|
2912
2963
|
}
|
|
2913
2964
|
|
|
2965
|
+
interface WEBGL_multi_draw {
|
|
2966
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
2967
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
|
2968
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
2969
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2914
2972
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
2915
2973
|
}
|
|
2916
2974
|
|
|
@@ -4860,8 +4918,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
4860
4918
|
readonly performance: Performance;
|
|
4861
4919
|
atob(data: string): string;
|
|
4862
4920
|
btoa(data: string): string;
|
|
4863
|
-
clearInterval(
|
|
4864
|
-
clearTimeout(
|
|
4921
|
+
clearInterval(id?: number): void;
|
|
4922
|
+
clearTimeout(id?: number): void;
|
|
4865
4923
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4866
4924
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4867
4925
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5283,7 +5341,7 @@ declare namespace WebAssembly {
|
|
|
5283
5341
|
|
|
5284
5342
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
5285
5343
|
type TableKind = "anyfunc" | "externref";
|
|
5286
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
5344
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
5287
5345
|
type ExportValue = Function | Global | Memory | Table;
|
|
5288
5346
|
type Exports = Record<string, ExportValue>;
|
|
5289
5347
|
type ImportValue = ExportValue | number;
|
|
@@ -5387,8 +5445,8 @@ declare var origin: string;
|
|
|
5387
5445
|
declare var performance: Performance;
|
|
5388
5446
|
declare function atob(data: string): string;
|
|
5389
5447
|
declare function btoa(data: string): string;
|
|
5390
|
-
declare function clearInterval(
|
|
5391
|
-
declare function clearTimeout(
|
|
5448
|
+
declare function clearInterval(id?: number): void;
|
|
5449
|
+
declare function clearTimeout(id?: number): void;
|
|
5392
5450
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5393
5451
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5394
5452
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
@@ -5449,11 +5507,13 @@ type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
|
5449
5507
|
type ColorSpaceConversion = "default" | "none";
|
|
5450
5508
|
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5451
5509
|
type EndingType = "native" | "transparent";
|
|
5510
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
5452
5511
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5453
5512
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5454
5513
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5455
5514
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5456
5515
|
type IDBRequestReadyState = "done" | "pending";
|
|
5516
|
+
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5457
5517
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5458
5518
|
type ImageOrientation = "flipY" | "none";
|
|
5459
5519
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
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;
|