@types/sharedworker 0.0.70 → 0.0.73
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 +16 -25
- package/iterable.d.ts +1 -1
- 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.73 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.73.
|
package/index.d.ts
CHANGED
|
@@ -228,6 +228,10 @@ interface IDBObjectStoreParameters {
|
|
|
228
228
|
keyPath?: string | string[] | null;
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
interface IDBTransactionOptions {
|
|
232
|
+
durability?: IDBTransactionDurability;
|
|
233
|
+
}
|
|
234
|
+
|
|
231
235
|
interface IDBVersionChangeEventInit extends EventInit {
|
|
232
236
|
newVersion?: number | null;
|
|
233
237
|
oldVersion?: number;
|
|
@@ -428,12 +432,12 @@ interface QueuingStrategyInit {
|
|
|
428
432
|
highWaterMark: number;
|
|
429
433
|
}
|
|
430
434
|
|
|
431
|
-
interface
|
|
435
|
+
interface ReadableStreamReadDoneResult {
|
|
432
436
|
done: true;
|
|
433
437
|
value?: undefined;
|
|
434
438
|
}
|
|
435
439
|
|
|
436
|
-
interface
|
|
440
|
+
interface ReadableStreamReadValueResult<T> {
|
|
437
441
|
done: false;
|
|
438
442
|
value: T;
|
|
439
443
|
}
|
|
@@ -896,6 +900,7 @@ declare var CustomEvent: {
|
|
|
896
900
|
|
|
897
901
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
898
902
|
interface DOMException extends Error {
|
|
903
|
+
/** @deprecated */
|
|
899
904
|
readonly code: number;
|
|
900
905
|
readonly message: string;
|
|
901
906
|
readonly name: string;
|
|
@@ -1627,7 +1632,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1627
1632
|
*/
|
|
1628
1633
|
deleteObjectStore(name: string): void;
|
|
1629
1634
|
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
1630
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1635
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
1631
1636
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1632
1637
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1633
1638
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2113,7 +2118,6 @@ interface NavigatorID {
|
|
|
2113
2118
|
readonly appName: string;
|
|
2114
2119
|
/** @deprecated */
|
|
2115
2120
|
readonly appVersion: string;
|
|
2116
|
-
/** @deprecated */
|
|
2117
2121
|
readonly platform: string;
|
|
2118
2122
|
/** @deprecated */
|
|
2119
2123
|
readonly product: string;
|
|
@@ -2130,10 +2134,6 @@ interface NavigatorLocks {
|
|
|
2130
2134
|
readonly locks: LockManager;
|
|
2131
2135
|
}
|
|
2132
2136
|
|
|
2133
|
-
interface NavigatorNetworkInformation {
|
|
2134
|
-
readonly connection: NetworkInformation;
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
2137
|
interface NavigatorOnLine {
|
|
2138
2138
|
readonly onLine: boolean;
|
|
2139
2139
|
}
|
|
@@ -2143,15 +2143,6 @@ interface NavigatorStorage {
|
|
|
2143
2143
|
readonly storage: StorageManager;
|
|
2144
2144
|
}
|
|
2145
2145
|
|
|
2146
|
-
interface NetworkInformation extends EventTarget {
|
|
2147
|
-
readonly type: ConnectionType;
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
declare var NetworkInformation: {
|
|
2151
|
-
prototype: NetworkInformation;
|
|
2152
|
-
new(): NetworkInformation;
|
|
2153
|
-
};
|
|
2154
|
-
|
|
2155
2146
|
interface NotificationEventMap {
|
|
2156
2147
|
"click": Event;
|
|
2157
2148
|
"close": Event;
|
|
@@ -2493,7 +2484,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2493
2484
|
};
|
|
2494
2485
|
|
|
2495
2486
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2496
|
-
read(): Promise<
|
|
2487
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2497
2488
|
releaseLock(): void;
|
|
2498
2489
|
}
|
|
2499
2490
|
|
|
@@ -4980,8 +4971,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
4980
4971
|
readonly performance: Performance;
|
|
4981
4972
|
atob(data: string): string;
|
|
4982
4973
|
btoa(data: string): string;
|
|
4983
|
-
clearInterval(id
|
|
4984
|
-
clearTimeout(id
|
|
4974
|
+
clearInterval(id: number | undefined): void;
|
|
4975
|
+
clearTimeout(id: number | undefined): void;
|
|
4985
4976
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4986
4977
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4987
4978
|
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5073,7 +5064,7 @@ declare var WorkerLocation: {
|
|
|
5073
5064
|
};
|
|
5074
5065
|
|
|
5075
5066
|
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
|
5076
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks,
|
|
5067
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5077
5068
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5078
5069
|
}
|
|
5079
5070
|
|
|
@@ -5097,6 +5088,7 @@ declare var WritableStream: {
|
|
|
5097
5088
|
|
|
5098
5089
|
/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
5099
5090
|
interface WritableStreamDefaultController {
|
|
5091
|
+
readonly signal: AbortSignal;
|
|
5100
5092
|
error(e?: any): void;
|
|
5101
5093
|
}
|
|
5102
5094
|
|
|
@@ -5512,8 +5504,8 @@ declare var origin: string;
|
|
|
5512
5504
|
declare var performance: Performance;
|
|
5513
5505
|
declare function atob(data: string): string;
|
|
5514
5506
|
declare function btoa(data: string): string;
|
|
5515
|
-
declare function clearInterval(id
|
|
5516
|
-
declare function clearTimeout(id
|
|
5507
|
+
declare function clearInterval(id: number | undefined): void;
|
|
5508
|
+
declare function clearTimeout(id: number | undefined): void;
|
|
5517
5509
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5518
5510
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5519
5511
|
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5560,7 +5552,7 @@ type NamedCurve = string;
|
|
|
5560
5552
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5561
5553
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5562
5554
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5563
|
-
type
|
|
5555
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
5564
5556
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5565
5557
|
type RequestInfo = Request | string;
|
|
5566
5558
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -5573,7 +5565,6 @@ type BinaryType = "arraybuffer" | "blob";
|
|
|
5573
5565
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5574
5566
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5575
5567
|
type ColorSpaceConversion = "default" | "none";
|
|
5576
|
-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5577
5568
|
type EndingType = "native" | "transparent";
|
|
5578
5569
|
type FileSystemHandleKind = "directory" | "file";
|
|
5579
5570
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
package/iterable.d.ts
CHANGED
|
@@ -39,7 +39,7 @@ interface Headers {
|
|
|
39
39
|
|
|
40
40
|
interface IDBDatabase {
|
|
41
41
|
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
42
|
-
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
|
|
42
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
interface IDBObjectStore {
|