@types/web 0.0.281 → 0.0.283

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.281 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.281.
50
+ You can read what changed in version 0.0.283 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.283.
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.
@@ -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,6 +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 {
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
+ */
26786
26795
  download: string;
26787
26796
  /**
26788
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.281",
3
+ "version": "0.0.283",
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.
@@ -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,6 +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 {
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
+ */
26762
26771
  download: string;
26763
26772
  /**
26764
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.
@@ -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,6 +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 {
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
+ */
26783
26792
  download: string;
26784
26793
  /**
26785
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.
@@ -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,6 +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 {
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
+ */
26783
26792
  download: string;
26784
26793
  /**
26785
26794
  * The **`rel`** property of the SVGAElement returns a string reflecting the value of the `rel` attribute of the SVG a element.