@types/web 0.0.82 → 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 +27 -21
  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.82 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.82.
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
@@ -180,6 +180,11 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
180
180
  numberOfOutputs?: number;
181
181
  }
182
182
 
183
+ interface CheckVisibilityOptions {
184
+ checkOpacity?: boolean;
185
+ checkVisibilityCSS?: boolean;
186
+ }
187
+
183
188
  interface ClientQueryOptions {
184
189
  includeUncontrolled?: boolean;
185
190
  type?: ClientTypes;
@@ -5046,6 +5051,7 @@ interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, Non
5046
5051
  readonly tagName: string;
5047
5052
  /** Creates a shadow root for element and returns it. */
5048
5053
  attachShadow(init: ShadowRootInit): ShadowRoot;
5054
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
5049
5055
  /** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
5050
5056
  closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
5051
5057
  closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
@@ -5271,9 +5277,9 @@ interface EventSource extends EventTarget {
5271
5277
  readonly withCredentials: boolean;
5272
5278
  /** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
5273
5279
  close(): void;
5274
- readonly CLOSED: number;
5275
- readonly CONNECTING: number;
5276
- readonly OPEN: number;
5280
+ readonly CLOSED: 2;
5281
+ readonly CONNECTING: 0;
5282
+ readonly OPEN: 1;
5277
5283
  addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5278
5284
  addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
5279
5285
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -5285,9 +5291,9 @@ interface EventSource extends EventTarget {
5285
5291
  declare var EventSource: {
5286
5292
  prototype: EventSource;
5287
5293
  new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
5288
- readonly CLOSED: number;
5289
- readonly CONNECTING: number;
5290
- readonly OPEN: number;
5294
+ readonly CLOSED: 2;
5295
+ readonly CONNECTING: 0;
5296
+ readonly OPEN: 1;
5291
5297
  };
5292
5298
 
5293
5299
  /** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
@@ -5382,9 +5388,9 @@ interface FileReader extends EventTarget {
5382
5388
  readAsBinaryString(blob: Blob): void;
5383
5389
  readAsDataURL(blob: Blob): void;
5384
5390
  readAsText(blob: Blob, encoding?: string): void;
5385
- readonly DONE: number;
5386
- readonly EMPTY: number;
5387
- readonly LOADING: number;
5391
+ readonly DONE: 2;
5392
+ readonly EMPTY: 0;
5393
+ readonly LOADING: 1;
5388
5394
  addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
5389
5395
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
5390
5396
  removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -5394,9 +5400,9 @@ interface FileReader extends EventTarget {
5394
5400
  declare var FileReader: {
5395
5401
  prototype: FileReader;
5396
5402
  new(): FileReader;
5397
- readonly DONE: number;
5398
- readonly EMPTY: number;
5399
- readonly LOADING: number;
5403
+ readonly DONE: 2;
5404
+ readonly EMPTY: 0;
5405
+ readonly LOADING: 1;
5400
5406
  };
5401
5407
 
5402
5408
  interface FileSystem {
@@ -7113,7 +7119,7 @@ interface HTMLInputElement extends HTMLElement {
7113
7119
  indeterminate: boolean;
7114
7120
  readonly labels: NodeListOf<HTMLLabelElement> | null;
7115
7121
  /** Specifies the ID of a pre-defined datalist of options for an input element. */
7116
- readonly list: HTMLElement | null;
7122
+ readonly list: HTMLDataListElement | null;
7117
7123
  /** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
7118
7124
  max: string;
7119
7125
  /** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
@@ -16853,10 +16859,10 @@ interface WebSocket extends EventTarget {
16853
16859
  close(code?: number, reason?: string): void;
16854
16860
  /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
16855
16861
  send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
16856
- readonly CLOSED: number;
16857
- readonly CLOSING: number;
16858
- readonly CONNECTING: number;
16859
- readonly OPEN: number;
16862
+ readonly CLOSED: 3;
16863
+ readonly CLOSING: 2;
16864
+ readonly CONNECTING: 0;
16865
+ readonly OPEN: 1;
16860
16866
  addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
16861
16867
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
16862
16868
  removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -16866,10 +16872,10 @@ interface WebSocket extends EventTarget {
16866
16872
  declare var WebSocket: {
16867
16873
  prototype: WebSocket;
16868
16874
  new(url: string | URL, protocols?: string | string[]): WebSocket;
16869
- readonly CLOSED: number;
16870
- readonly CLOSING: number;
16871
- readonly CONNECTING: number;
16872
- readonly OPEN: number;
16875
+ readonly CLOSED: 3;
16876
+ readonly CLOSING: 2;
16877
+ readonly CONNECTING: 0;
16878
+ readonly OPEN: 1;
16873
16879
  };
16874
16880
 
16875
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.82",
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": [],