Skip to content

Commit 634818c

Browse files
author
zhengbli
committed
Add missing worker types
1 parent f568ad0 commit 634818c

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

src/lib/webworker.generated.d.ts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
/// IE Worker APIs
44
/////////////////////////////
55

6+
interface Algorithm {
7+
name: string;
8+
}
9+
610
interface EventInit {
711
bubbles?: boolean;
812
cancelable?: boolean;
@@ -18,6 +22,10 @@ interface IDBObjectStoreParameters {
1822
keyPath?: IDBKeyPath;
1923
}
2024

25+
interface KeyAlgorithm {
26+
name?: string;
27+
}
28+
2129
interface EventListener {
2230
(evt: Event): void;
2331
}
@@ -107,6 +115,18 @@ declare var Coordinates: {
107115
new(): Coordinates;
108116
}
109117

118+
interface CryptoKey {
119+
readonly algorithm: KeyAlgorithm;
120+
readonly extractable: boolean;
121+
readonly type: string;
122+
readonly usages: string[];
123+
}
124+
125+
declare var CryptoKey: {
126+
prototype: CryptoKey;
127+
new(): CryptoKey;
128+
}
129+
110130
interface DOMError {
111131
readonly name: string;
112132
toString(): string;
@@ -1178,7 +1198,7 @@ declare var console: Console;
11781198
declare function addEventListener(type: "error", listener: (ev: ErrorEvent) => any, useCapture?: boolean): void;
11791199
declare function addEventListener(type: "message", listener: (ev: MessageEvent) => any, useCapture?: boolean): void;
11801200
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
1201+
type AlgorithmIdentifier = string | Algorithm;
11811202
type IDBKeyPath = string;
11821203
type IDBValidKey = number | string | Date | IDBArrayKey;
1183-
type BufferSource = ArrayBuffer | ArrayBufferView;
1184-
type MouseWheelEvent = WheelEvent;
1204+
type BufferSource = ArrayBuffer | ArrayBufferView;

0 commit comments

Comments
 (0)