Skip to content

Commit d03a7cd

Browse files
committed
Added correct definition for createIndex method of IDBObjectStore interface
1 parent 3e90e86 commit d03a7cd

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
[
2+
{
3+
"kind": "method",
4+
"interface": "IDBObjectStore",
5+
"name": "createIndex",
6+
"signatures": ["createIndex(name: string, keyPath: string | string[], optionalParameters?: any): IDBIndex"]
7+
},
28
{
39
"kind": "method",
410
"interface": "WebGLRenderingContext",

0 commit comments

Comments
 (0)