@types/sharedworker 0.0.86 → 0.0.87

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +20 -20
  3. 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.86 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.86.
31
+ You can read what changed in version 0.0.87 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.87.
package/index.d.ts CHANGED
@@ -1439,9 +1439,9 @@ interface EventSource extends EventTarget {
1439
1439
  readonly withCredentials: boolean;
1440
1440
  /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
1441
1441
  close(): void;
1442
- readonly CLOSED: number;
1443
- readonly CONNECTING: number;
1444
- readonly OPEN: number;
1442
+ readonly CLOSED: 2;
1443
+ readonly CONNECTING: 0;
1444
+ readonly OPEN: 1;
1445
1445
  addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1446
1446
  addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
1447
1447
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -1453,9 +1453,9 @@ interface EventSource extends EventTarget {
1453
1453
  declare var EventSource: {
1454
1454
  prototype: EventSource;
1455
1455
  new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
1456
- readonly CLOSED: number;
1457
- readonly CONNECTING: number;
1458
- readonly OPEN: number;
1456
+ readonly CLOSED: 2;
1457
+ readonly CONNECTING: 0;
1458
+ readonly OPEN: 1;
1459
1459
  };
1460
1460
 
1461
1461
  /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
@@ -1536,9 +1536,9 @@ interface FileReader extends EventTarget {
1536
1536
  readAsBinaryString(blob: Blob): void;
1537
1537
  readAsDataURL(blob: Blob): void;
1538
1538
  readAsText(blob: Blob, encoding?: string): void;
1539
- readonly DONE: number;
1540
- readonly EMPTY: number;
1541
- readonly LOADING: number;
1539
+ readonly DONE: 2;
1540
+ readonly EMPTY: 0;
1541
+ readonly LOADING: 1;
1542
1542
  addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1543
1543
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1544
1544
  removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -1548,9 +1548,9 @@ interface FileReader extends EventTarget {
1548
1548
  declare var FileReader: {
1549
1549
  prototype: FileReader;
1550
1550
  new(): FileReader;
1551
- readonly DONE: number;
1552
- readonly EMPTY: number;
1553
- readonly LOADING: number;
1551
+ readonly DONE: 2;
1552
+ readonly EMPTY: 0;
1553
+ readonly LOADING: 1;
1554
1554
  };
1555
1555
 
1556
1556
  /** Allows to read File or Blob objects in a synchronous way. */
@@ -5196,10 +5196,10 @@ interface WebSocket extends EventTarget {
5196
5196
  close(code?: number, reason?: string): void;
5197
5197
  /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
5198
5198
  send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
5199
- readonly CLOSED: number;
5200
- readonly CLOSING: number;
5201
- readonly CONNECTING: number;
5202
- readonly OPEN: number;
5199
+ readonly CLOSED: 3;
5200
+ readonly CLOSING: 2;
5201
+ readonly CONNECTING: 0;
5202
+ readonly OPEN: 1;
5203
5203
  addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5204
5204
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5205
5205
  removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -5209,10 +5209,10 @@ interface WebSocket extends EventTarget {
5209
5209
  declare var WebSocket: {
5210
5210
  prototype: WebSocket;
5211
5211
  new(url: string | URL, protocols?: string | string[]): WebSocket;
5212
- readonly CLOSED: number;
5213
- readonly CLOSING: number;
5214
- readonly CONNECTING: number;
5215
- readonly OPEN: number;
5212
+ readonly CLOSED: 3;
5213
+ readonly CLOSING: 2;
5214
+ readonly CONNECTING: 0;
5215
+ readonly OPEN: 1;
5216
5216
  };
5217
5217
 
5218
5218
  interface WindowOrWorkerGlobalScope {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],