@types/sharedworker 0.0.54 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.d.ts +10 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.58 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.58.
|
package/index.d.ts
CHANGED
|
@@ -67,8 +67,8 @@ interface CloseEventInit extends EventInit {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
interface CryptoKeyPair {
|
|
70
|
-
privateKey
|
|
71
|
-
publicKey
|
|
70
|
+
privateKey: CryptoKey;
|
|
71
|
+
publicKey: CryptoKey;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
interface CustomEventInit<T = any> extends EventInit {
|
|
@@ -325,7 +325,7 @@ interface NotificationOptions {
|
|
|
325
325
|
requireInteraction?: boolean;
|
|
326
326
|
silent?: boolean;
|
|
327
327
|
tag?: string;
|
|
328
|
-
timestamp?:
|
|
328
|
+
timestamp?: EpochTimeStamp;
|
|
329
329
|
vibrate?: VibratePattern;
|
|
330
330
|
}
|
|
331
331
|
|
|
@@ -370,7 +370,7 @@ interface PromiseRejectionEventInit extends EventInit {
|
|
|
370
370
|
|
|
371
371
|
interface PushSubscriptionJSON {
|
|
372
372
|
endpoint?: string;
|
|
373
|
-
expirationTime?:
|
|
373
|
+
expirationTime?: EpochTimeStamp | null;
|
|
374
374
|
keys?: Record<string, string>;
|
|
375
375
|
}
|
|
376
376
|
|
|
@@ -1246,8 +1246,10 @@ interface EventSource extends EventTarget {
|
|
|
1246
1246
|
readonly CONNECTING: number;
|
|
1247
1247
|
readonly OPEN: number;
|
|
1248
1248
|
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1249
|
+
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1249
1250
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1250
1251
|
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1252
|
+
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
|
|
1251
1253
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1252
1254
|
}
|
|
1253
1255
|
|
|
@@ -2307,7 +2309,7 @@ declare var PromiseRejectionEvent: {
|
|
|
2307
2309
|
*/
|
|
2308
2310
|
interface PushManager {
|
|
2309
2311
|
getSubscription(): Promise<PushSubscription | null>;
|
|
2310
|
-
permissionState(options?: PushSubscriptionOptionsInit): Promise<
|
|
2312
|
+
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
|
|
2311
2313
|
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
|
2312
2314
|
}
|
|
2313
2315
|
|
|
@@ -4864,6 +4866,7 @@ interface WindowOrWorkerGlobalScope {
|
|
|
4864
4866
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
4865
4867
|
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
4866
4868
|
queueMicrotask(callback: VoidFunction): void;
|
|
4869
|
+
reportError(e: any): void;
|
|
4867
4870
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
4868
4871
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
4869
4872
|
}
|
|
@@ -5390,6 +5393,7 @@ declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitm
|
|
|
5390
5393
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5391
5394
|
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
5392
5395
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
5396
|
+
declare function reportError(e: any): void;
|
|
5393
5397
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5394
5398
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5395
5399
|
declare function addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5404,7 +5408,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
|
5404
5408
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
5405
5409
|
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
|
|
5406
5410
|
type DOMHighResTimeStamp = number;
|
|
5407
|
-
type
|
|
5411
|
+
type EpochTimeStamp = number;
|
|
5408
5412
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
5409
5413
|
type Float32List = Float32Array | GLfloat[];
|
|
5410
5414
|
type FormDataEntryValue = File | string;
|
|
@@ -5464,7 +5468,6 @@ type PermissionState = "denied" | "granted" | "prompt";
|
|
|
5464
5468
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
5465
5469
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
5466
5470
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
5467
|
-
type PushPermissionState = "denied" | "granted" | "prompt";
|
|
5468
5471
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
5469
5472
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
5470
5473
|
type RequestCredentials = "include" | "omit" | "same-origin";
|