Skip to content

Commit 722da4f

Browse files
committed
Merge pull request #27 from aksharpatel47/IDBObjectStore_createIndex
Added correct definition for createIndex method of IDBObjectStore
2 parents 3e90e86 + b4ac1f3 commit 722da4f

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

baselines/dom.generated.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6948,7 +6948,7 @@ declare var IDBFactory: {
69486948
}
69496949

69506950
interface IDBIndex {
6951-
keyPath: string;
6951+
keyPath: string | string[];
69526952
name: string;
69536953
objectStore: IDBObjectStore;
69546954
unique: boolean;
@@ -6988,7 +6988,7 @@ interface IDBObjectStore {
69886988
add(value: any, key?: any): IDBRequest;
69896989
clear(): IDBRequest;
69906990
count(key?: any): IDBRequest;
6991-
createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex;
6991+
createIndex(name: string, keyPath: string | string[], optionalParameters?: any): IDBIndex;
69926992
delete(key: any): IDBRequest;
69936993
deleteIndex(indexName: string): void;
69946994
get(key: any): IDBRequest;

baselines/webworker.generated.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ declare var IDBFactory: {
336336
}
337337

338338
interface IDBIndex {
339-
keyPath: string;
339+
keyPath: string | string[];
340340
name: string;
341341
objectStore: IDBObjectStore;
342342
unique: boolean;
@@ -376,7 +376,7 @@ interface IDBObjectStore {
376376
add(value: any, key?: any): IDBRequest;
377377
clear(): IDBRequest;
378378
count(key?: any): IDBRequest;
379-
createIndex(name: string, keyPath: string, optionalParameters?: any): IDBIndex;
379+
createIndex(name: string, keyPath: string | string[], optionalParameters?: any): IDBIndex;
380380
delete(key: any): IDBRequest;
381381
deleteIndex(indexName: string): void;
382382
get(key: any): IDBRequest;

inputfiles/overridingTypes.json

+12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
[
2+
{
3+
"kind": "method",
4+
"interface": "IDBObjectStore",
5+
"name": "createIndex",
6+
"signatures": ["createIndex(name: string, keyPath: string | string[], optionalParameters?: any): IDBIndex"]
7+
},
8+
{
9+
"kind": "property",
10+
"interface": "IDBIndex",
11+
"name": "keyPath",
12+
"type": "string | string[]"
13+
},
214
{
315
"kind": "method",
416
"interface": "WebGLRenderingContext",

0 commit comments

Comments
 (0)