@types/web 0.0.309 → 0.0.311

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 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.309 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.309.
50
+ You can read what changed in version 0.0.311 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.311.
package/index.d.ts CHANGED
@@ -17344,7 +17344,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17344
17344
  *
17345
17345
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
17346
17346
  */
17347
- selectionDirection: "forward" | "backward" | "none" | null;
17347
+ selectionDirection: SelectionDirection | null;
17348
17348
  /**
17349
17349
  * The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
17350
17350
  *
@@ -17473,7 +17473,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17473
17473
  *
17474
17474
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
17475
17475
  */
17476
- setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
17476
+ setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
17477
17477
  /**
17478
17478
  * The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
17479
17479
  *
@@ -26923,7 +26923,6 @@ interface PopoverTargetAttributes {
26923
26923
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
26924
26924
  */
26925
26925
  interface ProcessingInstruction extends CharacterData, LinkStyle {
26926
- readonly ownerDocument: Document;
26927
26926
  /**
26928
26927
  * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted.
26929
26928
  *
@@ -42482,6 +42481,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
42482
42481
  type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
42483
42482
  type ReportList = Report[];
42484
42483
  type RequestInfo = Request | string;
42484
+ type SelectionDirection = "forward" | "backward" | "none";
42485
42485
  type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
42486
42486
  type TimerHandler = string | Function;
42487
42487
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.309",
3
+ "version": "0.0.311",
4
4
  "description": "Types for the DOM, and other web technologies in browsers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -17326,7 +17326,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17326
17326
  *
17327
17327
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
17328
17328
  */
17329
- selectionDirection: "forward" | "backward" | "none" | null;
17329
+ selectionDirection: SelectionDirection | null;
17330
17330
  /**
17331
17331
  * The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
17332
17332
  *
@@ -17455,7 +17455,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17455
17455
  *
17456
17456
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
17457
17457
  */
17458
- setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
17458
+ setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
17459
17459
  /**
17460
17460
  * The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
17461
17461
  *
@@ -26899,7 +26899,6 @@ interface PopoverTargetAttributes {
26899
26899
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
26900
26900
  */
26901
26901
  interface ProcessingInstruction extends CharacterData, LinkStyle {
26902
- readonly ownerDocument: Document;
26903
26902
  /**
26904
26903
  * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted.
26905
26904
  *
@@ -42456,6 +42455,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
42456
42455
  type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
42457
42456
  type ReportList = Report[];
42458
42457
  type RequestInfo = Request | string;
42458
+ type SelectionDirection = "forward" | "backward" | "none";
42459
42459
  type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
42460
42460
  type TimerHandler = string | Function;
42461
42461
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
package/ts5.6/index.d.ts CHANGED
@@ -17341,7 +17341,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17341
17341
  *
17342
17342
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
17343
17343
  */
17344
- selectionDirection: "forward" | "backward" | "none" | null;
17344
+ selectionDirection: SelectionDirection | null;
17345
17345
  /**
17346
17346
  * The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
17347
17347
  *
@@ -17470,7 +17470,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17470
17470
  *
17471
17471
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
17472
17472
  */
17473
- setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
17473
+ setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
17474
17474
  /**
17475
17475
  * The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
17476
17476
  *
@@ -26920,7 +26920,6 @@ interface PopoverTargetAttributes {
26920
26920
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
26921
26921
  */
26922
26922
  interface ProcessingInstruction extends CharacterData, LinkStyle {
26923
- readonly ownerDocument: Document;
26924
26923
  /**
26925
26924
  * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted.
26926
26925
  *
@@ -42479,6 +42478,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
42479
42478
  type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
42480
42479
  type ReportList = Report[];
42481
42480
  type RequestInfo = Request | string;
42481
+ type SelectionDirection = "forward" | "backward" | "none";
42482
42482
  type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
42483
42483
  type TimerHandler = string | Function;
42484
42484
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;
package/ts5.9/index.d.ts CHANGED
@@ -17341,7 +17341,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17341
17341
  *
17342
17342
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection)
17343
17343
  */
17344
- selectionDirection: "forward" | "backward" | "none" | null;
17344
+ selectionDirection: SelectionDirection | null;
17345
17345
  /**
17346
17346
  * The **`selectionEnd`** property of the HTMLInputElement interface is a number that represents the end index of the selected text. That is, it represents the index of the character immediately following the selection. Likewise, when there is no selection, this returns the offset of the character immediately following the current text input cursor position.
17347
17347
  *
@@ -17470,7 +17470,7 @@ interface HTMLInputElement extends HTMLElement, PopoverTargetAttributes {
17470
17470
  *
17471
17471
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
17472
17472
  */
17473
- setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
17473
+ setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
17474
17474
  /**
17475
17475
  * The **`HTMLInputElement.showPicker()`** method displays the browser picker for an input element.
17476
17476
  *
@@ -26920,7 +26920,6 @@ interface PopoverTargetAttributes {
26920
26920
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
26921
26921
  */
26922
26922
  interface ProcessingInstruction extends CharacterData, LinkStyle {
26923
- readonly ownerDocument: Document;
26924
26923
  /**
26925
26924
  * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted.
26926
26925
  *
@@ -42479,6 +42478,7 @@ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBY
42479
42478
  type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
42480
42479
  type ReportList = Report[];
42481
42480
  type RequestInfo = Request | string;
42481
+ type SelectionDirection = "forward" | "backward" | "none";
42482
42482
  type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
42483
42483
  type TimerHandler = string | Function;
42484
42484
  type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | RTCDataChannel | ArrayBuffer;