@types/serviceworker 0.0.56 → 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 +21 -21
- 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%2Fserviceworker%400.0.58.
|
package/index.d.ts
CHANGED
|
@@ -1052,7 +1052,7 @@ interface Crypto {
|
|
|
1052
1052
|
readonly subtle: SubtleCrypto;
|
|
1053
1053
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
1054
1054
|
/** Available only in secure contexts. */
|
|
1055
|
-
randomUUID(): string
|
|
1055
|
+
randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
1058
|
declare var Crypto: {
|
|
@@ -1495,9 +1495,9 @@ interface EventSource extends EventTarget {
|
|
|
1495
1495
|
readonly withCredentials: boolean;
|
|
1496
1496
|
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
|
|
1497
1497
|
close(): void;
|
|
1498
|
-
readonly CLOSED:
|
|
1499
|
-
readonly CONNECTING:
|
|
1500
|
-
readonly OPEN:
|
|
1498
|
+
readonly CLOSED: 2;
|
|
1499
|
+
readonly CONNECTING: 0;
|
|
1500
|
+
readonly OPEN: 1;
|
|
1501
1501
|
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1502
1502
|
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1503
1503
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1509,9 +1509,9 @@ interface EventSource extends EventTarget {
|
|
|
1509
1509
|
declare var EventSource: {
|
|
1510
1510
|
prototype: EventSource;
|
|
1511
1511
|
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
|
|
1512
|
-
readonly CLOSED:
|
|
1513
|
-
readonly CONNECTING:
|
|
1514
|
-
readonly OPEN:
|
|
1512
|
+
readonly CLOSED: 2;
|
|
1513
|
+
readonly CONNECTING: 0;
|
|
1514
|
+
readonly OPEN: 1;
|
|
1515
1515
|
};
|
|
1516
1516
|
|
|
1517
1517
|
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
|
|
@@ -1631,9 +1631,9 @@ interface FileReader extends EventTarget {
|
|
|
1631
1631
|
readAsBinaryString(blob: Blob): void;
|
|
1632
1632
|
readAsDataURL(blob: Blob): void;
|
|
1633
1633
|
readAsText(blob: Blob, encoding?: string): void;
|
|
1634
|
-
readonly DONE:
|
|
1635
|
-
readonly EMPTY:
|
|
1636
|
-
readonly LOADING:
|
|
1634
|
+
readonly DONE: 2;
|
|
1635
|
+
readonly EMPTY: 0;
|
|
1636
|
+
readonly LOADING: 1;
|
|
1637
1637
|
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1638
1638
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1639
1639
|
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -1643,9 +1643,9 @@ interface FileReader extends EventTarget {
|
|
|
1643
1643
|
declare var FileReader: {
|
|
1644
1644
|
prototype: FileReader;
|
|
1645
1645
|
new(): FileReader;
|
|
1646
|
-
readonly DONE:
|
|
1647
|
-
readonly EMPTY:
|
|
1648
|
-
readonly LOADING:
|
|
1646
|
+
readonly DONE: 2;
|
|
1647
|
+
readonly EMPTY: 0;
|
|
1648
|
+
readonly LOADING: 1;
|
|
1649
1649
|
};
|
|
1650
1650
|
|
|
1651
1651
|
/** Available only in secure contexts. */
|
|
@@ -5332,10 +5332,10 @@ interface WebSocket extends EventTarget {
|
|
|
5332
5332
|
close(code?: number, reason?: string): void;
|
|
5333
5333
|
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
|
|
5334
5334
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
5335
|
-
readonly CLOSED:
|
|
5336
|
-
readonly CLOSING:
|
|
5337
|
-
readonly CONNECTING:
|
|
5338
|
-
readonly OPEN:
|
|
5335
|
+
readonly CLOSED: 3;
|
|
5336
|
+
readonly CLOSING: 2;
|
|
5337
|
+
readonly CONNECTING: 0;
|
|
5338
|
+
readonly OPEN: 1;
|
|
5339
5339
|
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5340
5340
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
5341
5341
|
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -5345,10 +5345,10 @@ interface WebSocket extends EventTarget {
|
|
|
5345
5345
|
declare var WebSocket: {
|
|
5346
5346
|
prototype: WebSocket;
|
|
5347
5347
|
new(url: string | URL, protocols?: string | string[]): WebSocket;
|
|
5348
|
-
readonly CLOSED:
|
|
5349
|
-
readonly CLOSING:
|
|
5350
|
-
readonly CONNECTING:
|
|
5351
|
-
readonly OPEN:
|
|
5348
|
+
readonly CLOSED: 3;
|
|
5349
|
+
readonly CLOSING: 2;
|
|
5350
|
+
readonly CONNECTING: 0;
|
|
5351
|
+
readonly OPEN: 1;
|
|
5352
5352
|
};
|
|
5353
5353
|
|
|
5354
5354
|
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
|