Skip to content

Commit 064de38

Browse files
author
zhengbli
committed
Routine update of lib.d.ts 20160131
1 parent 39216e8 commit 064de38

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

src/lib/dom.generated.d.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ interface AudioNode extends EventTarget {
378378
numberOfOutputs: number;
379379
connect(destination: AudioNode, output?: number, input?: number): void;
380380
disconnect(output?: number): void;
381+
disconnect(destination: AudioNode, output?: number, input?: number): void;
382+
disconnect(destination: AudioParam, output?: number): void;
381383
}
382384

383385
declare var AudioNode: {
@@ -6894,7 +6896,7 @@ interface IDBCursor {
68946896
direction: string;
68956897
key: any;
68966898
primaryKey: any;
6897-
source: any;
6899+
source: IDBObjectStore | IDBIndex;
68986900
advance(count: number): void;
68996901
continue(key?: any): void;
69006902
delete(): IDBRequest;
@@ -6932,7 +6934,7 @@ interface IDBDatabase extends EventTarget {
69326934
close(): void;
69336935
createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
69346936
deleteObjectStore(name: string): void;
6935-
transaction(storeNames: any, mode?: string): IDBTransaction;
6937+
transaction(storeNames: string | string[], mode?: string): IDBTransaction;
69366938
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
69376939
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
69386940
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
@@ -6990,9 +6992,10 @@ declare var IDBKeyRange: {
69906992

69916993
interface IDBObjectStore {
69926994
indexNames: DOMStringList;
6993-
keyPath: string;
6995+
keyPath: string | string[];
69946996
name: string;
69956997
transaction: IDBTransaction;
6998+
autoIncrement: boolean;
69966999
add(value: any, key?: any): IDBRequest;
69977000
clear(): IDBRequest;
69987001
count(key?: any): IDBRequest;
@@ -7031,7 +7034,7 @@ interface IDBRequest extends EventTarget {
70317034
onsuccess: (ev: Event) => any;
70327035
readyState: string;
70337036
result: any;
7034-
source: any;
7037+
source: IDBObjectStore | IDBIndex | IDBCursor;
70357038
transaction: IDBTransaction;
70367039
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
70377040
addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
@@ -10218,11 +10221,14 @@ declare var SVGViewElement: {
1021810221
}
1021910222

1022010223
interface SVGZoomAndPan {
10224+
zoomAndPan: number;
10225+
}
10226+
10227+
declare var SVGZoomAndPan: {
1022110228
SVG_ZOOMANDPAN_DISABLE: number;
1022210229
SVG_ZOOMANDPAN_MAGNIFY: number;
1022310230
SVG_ZOOMANDPAN_UNKNOWN: number;
1022410231
}
10225-
declare var SVGZoomAndPan: SVGZoomAndPan;
1022610232

1022710233
interface SVGZoomEvent extends UIEvent {
1022810234
newScale: number;
@@ -12685,7 +12691,7 @@ interface DecodeSuccessCallback {
1268512691
(decodedData: AudioBuffer): void;
1268612692
}
1268712693
interface DecodeErrorCallback {
12688-
(): void;
12694+
(error: DOMException): void;
1268912695
}
1269012696
interface FunctionStringCallback {
1269112697
(data: string): void;

src/lib/webworker.generated.d.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ interface IDBCursor {
275275
direction: string;
276276
key: any;
277277
primaryKey: any;
278-
source: any;
278+
source: IDBObjectStore | IDBIndex;
279279
advance(count: number): void;
280280
continue(key?: any): void;
281281
delete(): IDBRequest;
@@ -313,7 +313,7 @@ interface IDBDatabase extends EventTarget {
313313
close(): void;
314314
createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;
315315
deleteObjectStore(name: string): void;
316-
transaction(storeNames: any, mode?: string): IDBTransaction;
316+
transaction(storeNames: string | string[], mode?: string): IDBTransaction;
317317
addEventListener(type: "abort", listener: (ev: Event) => any, useCapture?: boolean): void;
318318
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
319319
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
@@ -371,9 +371,10 @@ declare var IDBKeyRange: {
371371

372372
interface IDBObjectStore {
373373
indexNames: DOMStringList;
374-
keyPath: string;
374+
keyPath: string | string[];
375375
name: string;
376376
transaction: IDBTransaction;
377+
autoIncrement: boolean;
377378
add(value: any, key?: any): IDBRequest;
378379
clear(): IDBRequest;
379380
count(key?: any): IDBRequest;
@@ -412,7 +413,7 @@ interface IDBRequest extends EventTarget {
412413
onsuccess: (ev: Event) => any;
413414
readyState: string;
414415
result: any;
415-
source: any;
416+
source: IDBObjectStore | IDBIndex | IDBCursor;
416417
transaction: IDBTransaction;
417418
addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
418419
addEventListener(type: "success", listener: (ev: Event) => any, useCapture?: boolean): void;
@@ -959,7 +960,7 @@ interface DecodeSuccessCallback {
959960
(decodedData: AudioBuffer): void;
960961
}
961962
interface DecodeErrorCallback {
962-
(): void;
963+
(error: DOMException): void;
963964
}
964965
interface FunctionStringCallback {
965966
(data: string): void;

0 commit comments

Comments
 (0)