@types/sharedworker 0.0.69 → 0.0.72
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 +11 -21
- 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.72 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.72.
|
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
|
}
|
|
@@ -666,6 +670,7 @@ interface AbortSignal extends EventTarget {
|
|
|
666
670
|
readonly aborted: boolean;
|
|
667
671
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
668
672
|
readonly reason: any;
|
|
673
|
+
throwIfAborted(): void;
|
|
669
674
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
670
675
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
671
676
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -1626,7 +1631,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1626
1631
|
*/
|
|
1627
1632
|
deleteObjectStore(name: string): void;
|
|
1628
1633
|
/** 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. */
|
|
1629
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1634
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
1630
1635
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1631
1636
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1632
1637
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2112,7 +2117,6 @@ interface NavigatorID {
|
|
|
2112
2117
|
readonly appName: string;
|
|
2113
2118
|
/** @deprecated */
|
|
2114
2119
|
readonly appVersion: string;
|
|
2115
|
-
/** @deprecated */
|
|
2116
2120
|
readonly platform: string;
|
|
2117
2121
|
/** @deprecated */
|
|
2118
2122
|
readonly product: string;
|
|
@@ -2129,10 +2133,6 @@ interface NavigatorLocks {
|
|
|
2129
2133
|
readonly locks: LockManager;
|
|
2130
2134
|
}
|
|
2131
2135
|
|
|
2132
|
-
interface NavigatorNetworkInformation {
|
|
2133
|
-
readonly connection: NetworkInformation;
|
|
2134
|
-
}
|
|
2135
|
-
|
|
2136
2136
|
interface NavigatorOnLine {
|
|
2137
2137
|
readonly onLine: boolean;
|
|
2138
2138
|
}
|
|
@@ -2142,15 +2142,6 @@ interface NavigatorStorage {
|
|
|
2142
2142
|
readonly storage: StorageManager;
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
|
-
interface NetworkInformation extends EventTarget {
|
|
2146
|
-
readonly type: ConnectionType;
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
declare var NetworkInformation: {
|
|
2150
|
-
prototype: NetworkInformation;
|
|
2151
|
-
new(): NetworkInformation;
|
|
2152
|
-
};
|
|
2153
|
-
|
|
2154
2145
|
interface NotificationEventMap {
|
|
2155
2146
|
"click": Event;
|
|
2156
2147
|
"close": Event;
|
|
@@ -2492,7 +2483,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2492
2483
|
};
|
|
2493
2484
|
|
|
2494
2485
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2495
|
-
read(): Promise<
|
|
2486
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2496
2487
|
releaseLock(): void;
|
|
2497
2488
|
}
|
|
2498
2489
|
|
|
@@ -5072,7 +5063,7 @@ declare var WorkerLocation: {
|
|
|
5072
5063
|
};
|
|
5073
5064
|
|
|
5074
5065
|
/** 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. */
|
|
5075
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks,
|
|
5066
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5076
5067
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5077
5068
|
}
|
|
5078
5069
|
|
|
@@ -5559,7 +5550,7 @@ type NamedCurve = string;
|
|
|
5559
5550
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5560
5551
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5561
5552
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5562
|
-
type
|
|
5553
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
5563
5554
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5564
5555
|
type RequestInfo = Request | string;
|
|
5565
5556
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -5572,7 +5563,6 @@ type BinaryType = "arraybuffer" | "blob";
|
|
|
5572
5563
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5573
5564
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5574
5565
|
type ColorSpaceConversion = "default" | "none";
|
|
5575
|
-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5576
5566
|
type EndingType = "native" | "transparent";
|
|
5577
5567
|
type FileSystemHandleKind = "directory" | "file";
|
|
5578
5568
|
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 {
|