@types/web 0.0.256 → 0.0.258

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.256 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.256.
50
+ You can read what changed in version 0.0.258 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.258.
package/index.d.ts CHANGED
@@ -8122,11 +8122,23 @@ interface CanvasUserInterface {
8122
8122
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition)
8123
8123
  */
8124
8124
  interface CaretPosition {
8125
- /** The **`offset`** property of the CaretPosition interface returns an integer representing the offset of the selection in the caret position node. */
8125
+ /**
8126
+ * The **`offset`** property of the CaretPosition interface returns an integer representing the offset of the selection in the caret position node.
8127
+ *
8128
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/offset)
8129
+ */
8126
8130
  readonly offset: number;
8127
- /** The **`offsetNode`** property of the CaretPosition interface returns a Node containing the found node at the caret's position. */
8131
+ /**
8132
+ * The **`offsetNode`** property of the CaretPosition interface returns a Node containing the found node at the caret's position.
8133
+ *
8134
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/offsetNode)
8135
+ */
8128
8136
  readonly offsetNode: Node;
8129
- /** The `getClientRect()` method of the CaretPosition interface returns the client rectangle for the caret range. */
8137
+ /**
8138
+ * The `getClientRect()` method of the CaretPosition interface returns the client rectangle for the caret range.
8139
+ *
8140
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/getClientRect)
8141
+ */
8130
8142
  getClientRect(): DOMRect | null;
8131
8143
  }
8132
8144
 
@@ -11722,7 +11734,7 @@ interface Event {
11722
11734
  */
11723
11735
  initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
11724
11736
  /**
11725
- * The **`preventDefault()`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
11737
+ * The **`preventDefault()`** method of the Event interface tells the user agent that the event is being explicitly handled, so its default action, such as page scrolling, link navigation, or pasting text, should not be taken.
11726
11738
  *
11727
11739
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
11728
11740
  */
@@ -18491,13 +18503,13 @@ interface IDBIndex {
18491
18503
  *
18492
18504
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
18493
18505
  */
18494
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18506
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18495
18507
  /**
18496
18508
  * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.
18497
18509
  *
18498
18510
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
18499
18511
  */
18500
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18512
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18501
18513
  /**
18502
18514
  * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an IDBKeyRange.
18503
18515
  *
@@ -18673,13 +18685,13 @@ interface IDBObjectStore {
18673
18685
  *
18674
18686
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
18675
18687
  */
18676
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18688
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18677
18689
  /**
18678
18690
  * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
18679
18691
  *
18680
18692
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
18681
18693
  */
18682
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18694
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18683
18695
  /**
18684
18696
  * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
18685
18697
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.256",
3
+ "version": "0.0.258",
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
@@ -8114,11 +8114,23 @@ interface CanvasUserInterface {
8114
8114
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition)
8115
8115
  */
8116
8116
  interface CaretPosition {
8117
- /** The **`offset`** property of the CaretPosition interface returns an integer representing the offset of the selection in the caret position node. */
8117
+ /**
8118
+ * The **`offset`** property of the CaretPosition interface returns an integer representing the offset of the selection in the caret position node.
8119
+ *
8120
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/offset)
8121
+ */
8118
8122
  readonly offset: number;
8119
- /** The **`offsetNode`** property of the CaretPosition interface returns a Node containing the found node at the caret's position. */
8123
+ /**
8124
+ * The **`offsetNode`** property of the CaretPosition interface returns a Node containing the found node at the caret's position.
8125
+ *
8126
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/offsetNode)
8127
+ */
8120
8128
  readonly offsetNode: Node;
8121
- /** The `getClientRect()` method of the CaretPosition interface returns the client rectangle for the caret range. */
8129
+ /**
8130
+ * The `getClientRect()` method of the CaretPosition interface returns the client rectangle for the caret range.
8131
+ *
8132
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/getClientRect)
8133
+ */
8122
8134
  getClientRect(): DOMRect | null;
8123
8135
  }
8124
8136
 
@@ -11711,7 +11723,7 @@ interface Event {
11711
11723
  */
11712
11724
  initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
11713
11725
  /**
11714
- * The **`preventDefault()`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
11726
+ * The **`preventDefault()`** method of the Event interface tells the user agent that the event is being explicitly handled, so its default action, such as page scrolling, link navigation, or pasting text, should not be taken.
11715
11727
  *
11716
11728
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
11717
11729
  */
@@ -18470,13 +18482,13 @@ interface IDBIndex {
18470
18482
  *
18471
18483
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
18472
18484
  */
18473
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18485
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18474
18486
  /**
18475
18487
  * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.
18476
18488
  *
18477
18489
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
18478
18490
  */
18479
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18491
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18480
18492
  /**
18481
18493
  * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an IDBKeyRange.
18482
18494
  *
@@ -18652,13 +18664,13 @@ interface IDBObjectStore {
18652
18664
  *
18653
18665
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
18654
18666
  */
18655
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18667
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18656
18668
  /**
18657
18669
  * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
18658
18670
  *
18659
18671
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
18660
18672
  */
18661
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18673
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18662
18674
  /**
18663
18675
  * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
18664
18676
  *
package/ts5.6/index.d.ts CHANGED
@@ -8122,11 +8122,23 @@ interface CanvasUserInterface {
8122
8122
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition)
8123
8123
  */
8124
8124
  interface CaretPosition {
8125
- /** The **`offset`** property of the CaretPosition interface returns an integer representing the offset of the selection in the caret position node. */
8125
+ /**
8126
+ * The **`offset`** property of the CaretPosition interface returns an integer representing the offset of the selection in the caret position node.
8127
+ *
8128
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/offset)
8129
+ */
8126
8130
  readonly offset: number;
8127
- /** The **`offsetNode`** property of the CaretPosition interface returns a Node containing the found node at the caret's position. */
8131
+ /**
8132
+ * The **`offsetNode`** property of the CaretPosition interface returns a Node containing the found node at the caret's position.
8133
+ *
8134
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/offsetNode)
8135
+ */
8128
8136
  readonly offsetNode: Node;
8129
- /** The `getClientRect()` method of the CaretPosition interface returns the client rectangle for the caret range. */
8137
+ /**
8138
+ * The `getClientRect()` method of the CaretPosition interface returns the client rectangle for the caret range.
8139
+ *
8140
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition/getClientRect)
8141
+ */
8130
8142
  getClientRect(): DOMRect | null;
8131
8143
  }
8132
8144
 
@@ -11722,7 +11734,7 @@ interface Event {
11722
11734
  */
11723
11735
  initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
11724
11736
  /**
11725
- * The **`preventDefault()`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be.
11737
+ * The **`preventDefault()`** method of the Event interface tells the user agent that the event is being explicitly handled, so its default action, such as page scrolling, link navigation, or pasting text, should not be taken.
11726
11738
  *
11727
11739
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
11728
11740
  */
@@ -18491,13 +18503,13 @@ interface IDBIndex {
18491
18503
  *
18492
18504
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
18493
18505
  */
18494
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18506
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18495
18507
  /**
18496
18508
  * The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the `result` of the request object.
18497
18509
  *
18498
18510
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
18499
18511
  */
18500
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18512
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18501
18513
  /**
18502
18514
  * The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if `key` is set to an IDBKeyRange.
18503
18515
  *
@@ -18673,13 +18685,13 @@ interface IDBObjectStore {
18673
18685
  *
18674
18686
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
18675
18687
  */
18676
- getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18688
+ getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
18677
18689
  /**
18678
18690
  * The `getAllKeys()` method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
18679
18691
  *
18680
18692
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
18681
18693
  */
18682
- getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18694
+ getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
18683
18695
  /**
18684
18696
  * The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
18685
18697
  *