@types/serviceworker 0.0.42 → 0.0.43
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 +6 -2
- 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.43 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.43.
|
package/index.d.ts
CHANGED
|
@@ -253,6 +253,10 @@ interface IDBObjectStoreParameters {
|
|
|
253
253
|
keyPath?: string | string[] | null;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
+
interface IDBTransactionOptions {
|
|
257
|
+
durability?: IDBTransactionDurability;
|
|
258
|
+
}
|
|
259
|
+
|
|
256
260
|
interface IDBVersionChangeEventInit extends EventInit {
|
|
257
261
|
newVersion?: number | null;
|
|
258
262
|
oldVersion?: number;
|
|
@@ -1387,7 +1391,7 @@ declare var EventTarget: {
|
|
|
1387
1391
|
|
|
1388
1392
|
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
|
|
1389
1393
|
interface ExtendableEvent extends Event {
|
|
1390
|
-
waitUntil(f: any): void;
|
|
1394
|
+
waitUntil(f: Promise<any>): void;
|
|
1391
1395
|
}
|
|
1392
1396
|
|
|
1393
1397
|
declare var ExtendableEvent: {
|
|
@@ -1708,7 +1712,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1708
1712
|
*/
|
|
1709
1713
|
deleteObjectStore(name: string): void;
|
|
1710
1714
|
/** 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. */
|
|
1711
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1715
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
1712
1716
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1713
1717
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1714
1718
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
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 {
|