diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index 8be5f3626..a87ce4fc7 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -6894,7 +6894,7 @@ interface IDBCursor { direction: string; key: any; primaryKey: any; - source: any; + source: IDBObjectStore | IDBIndex; advance(count: number): void; continue(key?: any): void; delete(): IDBRequest; @@ -6932,7 +6932,7 @@ interface IDBDatabase extends EventTarget { close(): void; createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore; deleteObjectStore(name: string): void; - transaction(storeNames: any, mode?: string): IDBTransaction; + transaction(storeNames: string | string[], mode?: string): IDBTransaction; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -6990,9 +6990,10 @@ declare var IDBKeyRange: { interface IDBObjectStore { indexNames: DOMStringList; - keyPath: string; + keyPath: string | string[]; name: string; transaction: IDBTransaction; + autoIncrement: boolean; add(value: any, key?: any): IDBRequest; clear(): IDBRequest; count(key?: any): IDBRequest; @@ -7031,7 +7032,7 @@ interface IDBRequest extends EventTarget { onsuccess: (ev: Event) => any; readyState: string; result: any; - source: any; + source: IDBObjectStore | IDBIndex | IDBCursor; transaction: IDBTransaction; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 3c8574ccf..35dc82333 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -275,7 +275,7 @@ interface IDBCursor { direction: string; key: any; primaryKey: any; - source: any; + source: IDBObjectStore | IDBIndex; advance(count: number): void; continue(key?: any): void; delete(): IDBRequest; @@ -313,7 +313,7 @@ interface IDBDatabase extends EventTarget { close(): void; createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore; deleteObjectStore(name: string): void; - transaction(storeNames: any, mode?: string): IDBTransaction; + transaction(storeNames: string | string[], mode?: string): IDBTransaction; addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; @@ -371,9 +371,10 @@ declare var IDBKeyRange: { interface IDBObjectStore { indexNames: DOMStringList; - keyPath: string; + keyPath: string | string[]; name: string; transaction: IDBTransaction; + autoIncrement: boolean; add(value: any, key?: any): IDBRequest; clear(): IDBRequest; count(key?: any): IDBRequest; @@ -412,7 +413,7 @@ interface IDBRequest extends EventTarget { onsuccess: (ev: Event) => any; readyState: string; result: any; - source: any; + source: IDBObjectStore | IDBIndex | IDBCursor; transaction: IDBTransaction; addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void; addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index 0b6d43156..bf731ab5e 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -361,6 +361,12 @@ "name": "storageArea?", "type": "Storage" }, + { + "kind": "property", + "interface": "IDBObjectStore", + "name": "autoIncrement", + "type": "boolean" + }, { "kind": "interface", "name": "HTMLPictureElement", diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index 80353d667..48f1b2ca5 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -320,6 +320,30 @@ "new (type: string, eventInitDict?: StorageEventInit): StorageEvent" ] }, + { + "kind": "property", + "interface": "IDBCursor", + "name": "source", + "type": "IDBObjectStore | IDBIndex" + }, + { + "kind": "method", + "interface": "IDBDatabase", + "name": "transaction", + "signatures": ["transaction(storeNames: string | string[], mode?: string): IDBTransaction"] + }, + { + "kind": "property", + "interface": "IDBObjectStore", + "name": "keyPath", + "type": "string | string[]" + }, + { + "kind": "property", + "interface": "IDBRequest", + "name": "source", + "type": "IDBObjectStore | IDBIndex | IDBCursor" + }, { "kind": "method", "interface": "Window",