@types/web 0.0.83 → 0.0.84

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
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
47
47
 
48
48
  ## Deploy Metadata
49
49
 
50
- You can read what changed in version 0.0.83 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.83.
50
+ You can read what changed in version 0.0.84 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.84.
package/index.d.ts CHANGED
@@ -5277,9 +5277,9 @@ interface EventSource extends EventTarget {
5277
5277
  readonly withCredentials: boolean;
5278
5278
  /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
5279
5279
  close(): void;
5280
- readonly CLOSED: number;
5281
- readonly CONNECTING: number;
5282
- readonly OPEN: number;
5280
+ readonly CLOSED: 2;
5281
+ readonly CONNECTING: 0;
5282
+ readonly OPEN: 1;
5283
5283
  addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5284
5284
  addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
5285
5285
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -5291,9 +5291,9 @@ interface EventSource extends EventTarget {
5291
5291
  declare var EventSource: {
5292
5292
  prototype: EventSource;
5293
5293
  new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
5294
- readonly CLOSED: number;
5295
- readonly CONNECTING: number;
5296
- readonly OPEN: number;
5294
+ readonly CLOSED: 2;
5295
+ readonly CONNECTING: 0;
5296
+ readonly OPEN: 1;
5297
5297
  };
5298
5298
 
5299
5299
  /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
@@ -5388,9 +5388,9 @@ interface FileReader extends EventTarget {
5388
5388
  readAsBinaryString(blob: Blob): void;
5389
5389
  readAsDataURL(blob: Blob): void;
5390
5390
  readAsText(blob: Blob, encoding?: string): void;
5391
- readonly DONE: number;
5392
- readonly EMPTY: number;
5393
- readonly LOADING: number;
5391
+ readonly DONE: 2;
5392
+ readonly EMPTY: 0;
5393
+ readonly LOADING: 1;
5394
5394
  addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5395
5395
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5396
5396
  removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -5400,9 +5400,9 @@ interface FileReader extends EventTarget {
5400
5400
  declare var FileReader: {
5401
5401
  prototype: FileReader;
5402
5402
  new(): FileReader;
5403
- readonly DONE: number;
5404
- readonly EMPTY: number;
5405
- readonly LOADING: number;
5403
+ readonly DONE: 2;
5404
+ readonly EMPTY: 0;
5405
+ readonly LOADING: 1;
5406
5406
  };
5407
5407
 
5408
5408
  interface FileSystem {
@@ -16859,10 +16859,10 @@ interface WebSocket extends EventTarget {
16859
16859
  close(code?: number, reason?: string): void;
16860
16860
  /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
16861
16861
  send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
16862
- readonly CLOSED: number;
16863
- readonly CLOSING: number;
16864
- readonly CONNECTING: number;
16865
- readonly OPEN: number;
16862
+ readonly CLOSED: 3;
16863
+ readonly CLOSING: 2;
16864
+ readonly CONNECTING: 0;
16865
+ readonly OPEN: 1;
16866
16866
  addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16867
16867
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16868
16868
  removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -16872,10 +16872,10 @@ interface WebSocket extends EventTarget {
16872
16872
  declare var WebSocket: {
16873
16873
  prototype: WebSocket;
16874
16874
  new(url: string | URL, protocols?: string | string[]): WebSocket;
16875
- readonly CLOSED: number;
16876
- readonly CLOSING: number;
16877
- readonly CONNECTING: number;
16878
- readonly OPEN: number;
16875
+ readonly CLOSED: 3;
16876
+ readonly CLOSING: 2;
16877
+ readonly CONNECTING: 0;
16878
+ readonly OPEN: 1;
16879
16879
  };
16880
16880
 
16881
16881
  /** Events that occur due to the user moving a mouse wheel or similar input device. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],