@@ -6923,7 +6923,7 @@ interface IDBDatabase extends EventTarget {
6923
6923
onerror: (ev: Event) => any;
6924
6924
version: string;
6925
6925
close(): void;
6926
- createObjectStore(name: string, optionalParameters?: any ): IDBObjectStore;
6926
+ createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters ): IDBObjectStore;
6927
6927
deleteObjectStore(name: string): void;
6928
6928
transaction(storeNames: any, mode?: string): IDBTransaction;
6929
6929
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
@@ -6948,10 +6948,11 @@ declare var IDBFactory: {
6948
6948
}
6949
6949
6950
6950
interface IDBIndex {
6951
- keyPath: string;
6951
+ keyPath: string | string[] ;
6952
6952
name: string;
6953
6953
objectStore: IDBObjectStore;
6954
6954
unique: boolean;
6955
+ multiEntry: boolean;
6955
6956
count(key?: any): IDBRequest;
6956
6957
get(key: any): IDBRequest;
6957
6958
getKey(key: any): IDBRequest;
@@ -6988,7 +6989,7 @@ interface IDBObjectStore {
6988
6989
add(value: any, key?: any): IDBRequest;
6989
6990
clear(): IDBRequest;
6990
6991
count(key?: any): IDBRequest;
6991
- createIndex(name: string, keyPath: string, optionalParameters?: any ): IDBIndex;
6992
+ createIndex(name: string, keyPath: string | string[] , optionalParameters?: IDBIndexParameters ): IDBIndex;
6992
6993
delete(key: any): IDBRequest;
6993
6994
deleteIndex(indexName: string): void;
6994
6995
get(key: any): IDBRequest;
@@ -12575,6 +12576,16 @@ interface XMLHttpRequestEventTarget {
12575
12576
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
12576
12577
}
12577
12578
12579
+ interface IDBObjectStoreParameters {
12580
+ keyPath?: string | string[];
12581
+ autoIncrement?: boolean;
12582
+ }
12583
+
12584
+ interface IDBIndexParameters {
12585
+ unique?: boolean;
12586
+ multiEntry?: boolean;
12587
+ }
12588
+
12578
12589
interface NodeListOf<TNode extends Node> extends NodeList {
12579
12590
length: number;
12580
12591
item(index: number): TNode;
@@ -12610,6 +12621,15 @@ interface ProgressEventInit extends EventInit {
12610
12621
total?: number;
12611
12622
}
12612
12623
12624
+ interface HTMLTemplateElement extends HTMLElement {
12625
+ content: DocumentFragment;
12626
+ }
12627
+
12628
+ declare var HTMLTemplateElement: {
12629
+ prototype: HTMLTemplateElement;
12630
+ new(): HTMLTemplateElement;
12631
+ }
12632
+
12613
12633
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
12614
12634
12615
12635
interface ErrorEventHandler {
0 commit comments