@types/web 0.0.282 → 0.0.284

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.282 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.282.
50
+ You can read what changed in version 0.0.284 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.284.
package/index.d.ts CHANGED
@@ -2001,6 +2001,10 @@ interface RTCTransportStats extends RTCStats {
2001
2001
  tlsVersion?: string;
2002
2002
  }
2003
2003
 
2004
+ interface ReadableStreamBYOBReaderReadOptions {
2005
+ min?: number;
2006
+ }
2007
+
2004
2008
  interface ReadableStreamGetReaderOptions {
2005
2009
  /**
2006
2010
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -10593,7 +10597,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10593
10597
  */
10594
10598
  createProcessingInstruction(target: string, data: string): ProcessingInstruction;
10595
10599
  /**
10596
- * The **`Document.createRange()`** method returns a new Range object.
10600
+ * The **`Document.createRange()`** method returns a new Range object whose start and end are offset 0 of the Document object on which it was called.
10597
10601
  *
10598
10602
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
10599
10603
  */
@@ -26304,7 +26308,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26304
26308
  *
26305
26309
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26306
26310
  */
26307
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
26311
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26308
26312
  /**
26309
26313
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26310
26314
  *
@@ -26783,7 +26787,11 @@ declare var Response: {
26783
26787
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26784
26788
  */
26785
26789
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26786
- /** The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. */
26790
+ /**
26791
+ * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download.
26792
+ *
26793
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
26794
+ */
26787
26795
  download: string;
26788
26796
  /**
26789
26797
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/web",
3
- "version": "0.0.282",
3
+ "version": "0.0.284",
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
@@ -1998,6 +1998,10 @@ interface RTCTransportStats extends RTCStats {
1998
1998
  tlsVersion?: string;
1999
1999
  }
2000
2000
 
2001
+ interface ReadableStreamBYOBReaderReadOptions {
2002
+ min?: number;
2003
+ }
2004
+
2001
2005
  interface ReadableStreamGetReaderOptions {
2002
2006
  /**
2003
2007
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -10582,7 +10586,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10582
10586
  */
10583
10587
  createProcessingInstruction(target: string, data: string): ProcessingInstruction;
10584
10588
  /**
10585
- * The **`Document.createRange()`** method returns a new Range object.
10589
+ * The **`Document.createRange()`** method returns a new Range object whose start and end are offset 0 of the Document object on which it was called.
10586
10590
  *
10587
10591
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
10588
10592
  */
@@ -26280,7 +26284,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26280
26284
  *
26281
26285
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26282
26286
  */
26283
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
26287
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26284
26288
  /**
26285
26289
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26286
26290
  *
@@ -26759,7 +26763,11 @@ declare var Response: {
26759
26763
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26760
26764
  */
26761
26765
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26762
- /** The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. */
26766
+ /**
26767
+ * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download.
26768
+ *
26769
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
26770
+ */
26763
26771
  download: string;
26764
26772
  /**
26765
26773
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
package/ts5.6/index.d.ts CHANGED
@@ -1998,6 +1998,10 @@ interface RTCTransportStats extends RTCStats {
1998
1998
  tlsVersion?: string;
1999
1999
  }
2000
2000
 
2001
+ interface ReadableStreamBYOBReaderReadOptions {
2002
+ min?: number;
2003
+ }
2004
+
2001
2005
  interface ReadableStreamGetReaderOptions {
2002
2006
  /**
2003
2007
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -10590,7 +10594,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10590
10594
  */
10591
10595
  createProcessingInstruction(target: string, data: string): ProcessingInstruction;
10592
10596
  /**
10593
- * The **`Document.createRange()`** method returns a new Range object.
10597
+ * The **`Document.createRange()`** method returns a new Range object whose start and end are offset 0 of the Document object on which it was called.
10594
10598
  *
10595
10599
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
10596
10600
  */
@@ -26301,7 +26305,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26301
26305
  *
26302
26306
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26303
26307
  */
26304
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
26308
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26305
26309
  /**
26306
26310
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26307
26311
  *
@@ -26780,7 +26784,11 @@ declare var Response: {
26780
26784
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26781
26785
  */
26782
26786
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26783
- /** The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. */
26787
+ /**
26788
+ * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download.
26789
+ *
26790
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
26791
+ */
26784
26792
  download: string;
26785
26793
  /**
26786
26794
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.
package/ts5.9/index.d.ts CHANGED
@@ -1998,6 +1998,10 @@ interface RTCTransportStats extends RTCStats {
1998
1998
  tlsVersion?: string;
1999
1999
  }
2000
2000
 
2001
+ interface ReadableStreamBYOBReaderReadOptions {
2002
+ min?: number;
2003
+ }
2004
+
2001
2005
  interface ReadableStreamGetReaderOptions {
2002
2006
  /**
2003
2007
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -10590,7 +10594,7 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
10590
10594
  */
10591
10595
  createProcessingInstruction(target: string, data: string): ProcessingInstruction;
10592
10596
  /**
10593
- * The **`Document.createRange()`** method returns a new Range object.
10597
+ * The **`Document.createRange()`** method returns a new Range object whose start and end are offset 0 of the Document object on which it was called.
10594
10598
  *
10595
10599
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
10596
10600
  */
@@ -26301,7 +26305,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
26301
26305
  *
26302
26306
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
26303
26307
  */
26304
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
26308
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
26305
26309
  /**
26306
26310
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
26307
26311
  *
@@ -26780,7 +26784,11 @@ declare var Response: {
26780
26784
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
26781
26785
  */
26782
26786
  interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
26783
- /** The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download. */
26787
+ /**
26788
+ * The **`download`** property of the SVGAElement interface returns a string indicating that the browser should treat the linked URL as a download.
26789
+ *
26790
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/download)
26791
+ */
26784
26792
  download: string;
26785
26793
  /**
26786
26794
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.