@types/serviceworker 0.0.161 → 0.0.163
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 +1 -1
- package/index.d.ts +43 -11
- package/package.json +1 -1
- package/ts5.5/index.d.ts +43 -11
- package/ts5.6/index.d.ts +43 -11
- package/ts5.9/index.d.ts +43 -11
package/README.md
CHANGED
|
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
28
28
|
|
|
29
29
|
## Deploy Metadata
|
|
30
30
|
|
|
31
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.163 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.163.
|
package/index.d.ts
CHANGED
|
@@ -2327,7 +2327,7 @@ interface Crypto {
|
|
|
2327
2327
|
*
|
|
2328
2328
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2329
2329
|
*/
|
|
2330
|
-
getRandomValues<T extends
|
|
2330
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2331
2331
|
/**
|
|
2332
2332
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2333
2333
|
* Available only in secure contexts.
|
|
@@ -2609,11 +2609,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
2609
2609
|
declare var DOMMatrix: {
|
|
2610
2610
|
prototype: DOMMatrix;
|
|
2611
2611
|
new(init?: string | number[]): DOMMatrix;
|
|
2612
|
-
/**
|
|
2612
|
+
/**
|
|
2613
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
2614
|
+
*
|
|
2615
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
2616
|
+
*/
|
|
2613
2617
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
|
|
2614
|
-
/**
|
|
2618
|
+
/**
|
|
2619
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
2620
|
+
*
|
|
2621
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
2622
|
+
*/
|
|
2615
2623
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
|
|
2616
|
-
/**
|
|
2624
|
+
/**
|
|
2625
|
+
* The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties.
|
|
2626
|
+
*
|
|
2627
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
2628
|
+
*/
|
|
2617
2629
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
2618
2630
|
};
|
|
2619
2631
|
|
|
@@ -2782,11 +2794,23 @@ interface DOMMatrixReadOnly {
|
|
|
2782
2794
|
declare var DOMMatrixReadOnly: {
|
|
2783
2795
|
prototype: DOMMatrixReadOnly;
|
|
2784
2796
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
2785
|
-
/**
|
|
2797
|
+
/**
|
|
2798
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
2799
|
+
*
|
|
2800
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
2801
|
+
*/
|
|
2786
2802
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
2787
|
-
/**
|
|
2803
|
+
/**
|
|
2804
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
2805
|
+
*
|
|
2806
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
2807
|
+
*/
|
|
2788
2808
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
2789
|
-
/**
|
|
2809
|
+
/**
|
|
2810
|
+
* The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties.
|
|
2811
|
+
*
|
|
2812
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
2813
|
+
*/
|
|
2790
2814
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
2791
2815
|
};
|
|
2792
2816
|
|
|
@@ -2935,9 +2959,17 @@ interface DOMQuad {
|
|
|
2935
2959
|
declare var DOMQuad: {
|
|
2936
2960
|
prototype: DOMQuad;
|
|
2937
2961
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
2938
|
-
/**
|
|
2962
|
+
/**
|
|
2963
|
+
* The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object.
|
|
2964
|
+
*
|
|
2965
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
2966
|
+
*/
|
|
2939
2967
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
2940
|
-
/**
|
|
2968
|
+
/**
|
|
2969
|
+
* The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object.
|
|
2970
|
+
*
|
|
2971
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
2972
|
+
*/
|
|
2941
2973
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
2942
2974
|
};
|
|
2943
2975
|
|
|
@@ -6503,7 +6535,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
6503
6535
|
*
|
|
6504
6536
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
6505
6537
|
*/
|
|
6506
|
-
read<T extends
|
|
6538
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
6507
6539
|
/**
|
|
6508
6540
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
6509
6541
|
*
|
|
@@ -10509,7 +10541,7 @@ interface WebSocket extends EventTarget {
|
|
|
10509
10541
|
*
|
|
10510
10542
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
10511
10543
|
*/
|
|
10512
|
-
send(data:
|
|
10544
|
+
send(data: BufferSource | Blob | string): void;
|
|
10513
10545
|
readonly CONNECTING: 0;
|
|
10514
10546
|
readonly OPEN: 1;
|
|
10515
10547
|
readonly CLOSING: 2;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -2324,7 +2324,7 @@ interface Crypto {
|
|
|
2324
2324
|
*
|
|
2325
2325
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2326
2326
|
*/
|
|
2327
|
-
getRandomValues<T extends
|
|
2327
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2328
2328
|
/**
|
|
2329
2329
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2330
2330
|
* Available only in secure contexts.
|
|
@@ -2606,11 +2606,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
2606
2606
|
declare var DOMMatrix: {
|
|
2607
2607
|
prototype: DOMMatrix;
|
|
2608
2608
|
new(init?: string | number[]): DOMMatrix;
|
|
2609
|
-
/**
|
|
2609
|
+
/**
|
|
2610
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
2611
|
+
*
|
|
2612
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
2613
|
+
*/
|
|
2610
2614
|
fromFloat32Array(array32: Float32Array): DOMMatrix;
|
|
2611
|
-
/**
|
|
2615
|
+
/**
|
|
2616
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
2617
|
+
*
|
|
2618
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
2619
|
+
*/
|
|
2612
2620
|
fromFloat64Array(array64: Float64Array): DOMMatrix;
|
|
2613
|
-
/**
|
|
2621
|
+
/**
|
|
2622
|
+
* The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties.
|
|
2623
|
+
*
|
|
2624
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
2625
|
+
*/
|
|
2614
2626
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
2615
2627
|
};
|
|
2616
2628
|
|
|
@@ -2779,11 +2791,23 @@ interface DOMMatrixReadOnly {
|
|
|
2779
2791
|
declare var DOMMatrixReadOnly: {
|
|
2780
2792
|
prototype: DOMMatrixReadOnly;
|
|
2781
2793
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
2782
|
-
/**
|
|
2794
|
+
/**
|
|
2795
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
2796
|
+
*
|
|
2797
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
2798
|
+
*/
|
|
2783
2799
|
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
|
|
2784
|
-
/**
|
|
2800
|
+
/**
|
|
2801
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
2802
|
+
*
|
|
2803
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
2804
|
+
*/
|
|
2785
2805
|
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
|
|
2786
|
-
/**
|
|
2806
|
+
/**
|
|
2807
|
+
* The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties.
|
|
2808
|
+
*
|
|
2809
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
2810
|
+
*/
|
|
2787
2811
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
2788
2812
|
};
|
|
2789
2813
|
|
|
@@ -2932,9 +2956,17 @@ interface DOMQuad {
|
|
|
2932
2956
|
declare var DOMQuad: {
|
|
2933
2957
|
prototype: DOMQuad;
|
|
2934
2958
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
2935
|
-
/**
|
|
2959
|
+
/**
|
|
2960
|
+
* The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object.
|
|
2961
|
+
*
|
|
2962
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
2963
|
+
*/
|
|
2936
2964
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
2937
|
-
/**
|
|
2965
|
+
/**
|
|
2966
|
+
* The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object.
|
|
2967
|
+
*
|
|
2968
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
2969
|
+
*/
|
|
2938
2970
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
2939
2971
|
};
|
|
2940
2972
|
|
|
@@ -6500,7 +6532,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
6500
6532
|
*
|
|
6501
6533
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
6502
6534
|
*/
|
|
6503
|
-
read<T extends
|
|
6535
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
6504
6536
|
/**
|
|
6505
6537
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
6506
6538
|
*
|
|
@@ -10506,7 +10538,7 @@ interface WebSocket extends EventTarget {
|
|
|
10506
10538
|
*
|
|
10507
10539
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
10508
10540
|
*/
|
|
10509
|
-
send(data:
|
|
10541
|
+
send(data: BufferSource | Blob | string): void;
|
|
10510
10542
|
readonly CONNECTING: 0;
|
|
10511
10543
|
readonly OPEN: 1;
|
|
10512
10544
|
readonly CLOSING: 2;
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -2324,7 +2324,7 @@ interface Crypto {
|
|
|
2324
2324
|
*
|
|
2325
2325
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2326
2326
|
*/
|
|
2327
|
-
getRandomValues<T extends
|
|
2327
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2328
2328
|
/**
|
|
2329
2329
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2330
2330
|
* Available only in secure contexts.
|
|
@@ -2606,11 +2606,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
2606
2606
|
declare var DOMMatrix: {
|
|
2607
2607
|
prototype: DOMMatrix;
|
|
2608
2608
|
new(init?: string | number[]): DOMMatrix;
|
|
2609
|
-
/**
|
|
2609
|
+
/**
|
|
2610
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
2611
|
+
*
|
|
2612
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
2613
|
+
*/
|
|
2610
2614
|
fromFloat32Array(array32: Float32Array): DOMMatrix;
|
|
2611
|
-
/**
|
|
2615
|
+
/**
|
|
2616
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
2617
|
+
*
|
|
2618
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
2619
|
+
*/
|
|
2612
2620
|
fromFloat64Array(array64: Float64Array): DOMMatrix;
|
|
2613
|
-
/**
|
|
2621
|
+
/**
|
|
2622
|
+
* The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties.
|
|
2623
|
+
*
|
|
2624
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
2625
|
+
*/
|
|
2614
2626
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
2615
2627
|
};
|
|
2616
2628
|
|
|
@@ -2779,11 +2791,23 @@ interface DOMMatrixReadOnly {
|
|
|
2779
2791
|
declare var DOMMatrixReadOnly: {
|
|
2780
2792
|
prototype: DOMMatrixReadOnly;
|
|
2781
2793
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
2782
|
-
/**
|
|
2794
|
+
/**
|
|
2795
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
2796
|
+
*
|
|
2797
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
2798
|
+
*/
|
|
2783
2799
|
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
|
|
2784
|
-
/**
|
|
2800
|
+
/**
|
|
2801
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
2802
|
+
*
|
|
2803
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
2804
|
+
*/
|
|
2785
2805
|
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
|
|
2786
|
-
/**
|
|
2806
|
+
/**
|
|
2807
|
+
* The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties.
|
|
2808
|
+
*
|
|
2809
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
2810
|
+
*/
|
|
2787
2811
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
2788
2812
|
};
|
|
2789
2813
|
|
|
@@ -2932,9 +2956,17 @@ interface DOMQuad {
|
|
|
2932
2956
|
declare var DOMQuad: {
|
|
2933
2957
|
prototype: DOMQuad;
|
|
2934
2958
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
2935
|
-
/**
|
|
2959
|
+
/**
|
|
2960
|
+
* The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object.
|
|
2961
|
+
*
|
|
2962
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
2963
|
+
*/
|
|
2936
2964
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
2937
|
-
/**
|
|
2965
|
+
/**
|
|
2966
|
+
* The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object.
|
|
2967
|
+
*
|
|
2968
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
2969
|
+
*/
|
|
2938
2970
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
2939
2971
|
};
|
|
2940
2972
|
|
|
@@ -6500,7 +6532,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
6500
6532
|
*
|
|
6501
6533
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
6502
6534
|
*/
|
|
6503
|
-
read<T extends
|
|
6535
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
6504
6536
|
/**
|
|
6505
6537
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
6506
6538
|
*
|
|
@@ -10506,7 +10538,7 @@ interface WebSocket extends EventTarget {
|
|
|
10506
10538
|
*
|
|
10507
10539
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
10508
10540
|
*/
|
|
10509
|
-
send(data:
|
|
10541
|
+
send(data: BufferSource | Blob | string): void;
|
|
10510
10542
|
readonly CONNECTING: 0;
|
|
10511
10543
|
readonly OPEN: 1;
|
|
10512
10544
|
readonly CLOSING: 2;
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -2324,7 +2324,7 @@ interface Crypto {
|
|
|
2324
2324
|
*
|
|
2325
2325
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2326
2326
|
*/
|
|
2327
|
-
getRandomValues<T extends
|
|
2327
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2328
2328
|
/**
|
|
2329
2329
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2330
2330
|
* Available only in secure contexts.
|
|
@@ -2606,11 +2606,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
2606
2606
|
declare var DOMMatrix: {
|
|
2607
2607
|
prototype: DOMMatrix;
|
|
2608
2608
|
new(init?: string | number[]): DOMMatrix;
|
|
2609
|
-
/**
|
|
2609
|
+
/**
|
|
2610
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
2611
|
+
*
|
|
2612
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
2613
|
+
*/
|
|
2610
2614
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
|
|
2611
|
-
/**
|
|
2615
|
+
/**
|
|
2616
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
2617
|
+
*
|
|
2618
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
2619
|
+
*/
|
|
2612
2620
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
|
|
2613
|
-
/**
|
|
2621
|
+
/**
|
|
2622
|
+
* The **`fromMatrix()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties.
|
|
2623
|
+
*
|
|
2624
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
2625
|
+
*/
|
|
2614
2626
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
2615
2627
|
};
|
|
2616
2628
|
|
|
@@ -2779,11 +2791,23 @@ interface DOMMatrixReadOnly {
|
|
|
2779
2791
|
declare var DOMMatrixReadOnly: {
|
|
2780
2792
|
prototype: DOMMatrixReadOnly;
|
|
2781
2793
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
2782
|
-
/**
|
|
2794
|
+
/**
|
|
2795
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
2796
|
+
*
|
|
2797
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
2798
|
+
*/
|
|
2783
2799
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
2784
|
-
/**
|
|
2800
|
+
/**
|
|
2801
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
2802
|
+
*
|
|
2803
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
2804
|
+
*/
|
|
2785
2805
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
2786
|
-
/**
|
|
2806
|
+
/**
|
|
2807
|
+
* The **`fromMatrix()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an existing matrix or an object which provides the values for its properties.
|
|
2808
|
+
*
|
|
2809
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
2810
|
+
*/
|
|
2787
2811
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
2788
2812
|
};
|
|
2789
2813
|
|
|
@@ -2932,9 +2956,17 @@ interface DOMQuad {
|
|
|
2932
2956
|
declare var DOMQuad: {
|
|
2933
2957
|
prototype: DOMQuad;
|
|
2934
2958
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
2935
|
-
/**
|
|
2959
|
+
/**
|
|
2960
|
+
* The **`fromQuad()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of another `DOMQuad` object.
|
|
2961
|
+
*
|
|
2962
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
2963
|
+
*/
|
|
2936
2964
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
2937
|
-
/**
|
|
2965
|
+
/**
|
|
2966
|
+
* The **`fromRect()`** static method of the DOMQuad interface returns a new `DOMQuad` object based on the provided set of coordinates in the shape of a DOMRect object.
|
|
2967
|
+
*
|
|
2968
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
2969
|
+
*/
|
|
2938
2970
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
2939
2971
|
};
|
|
2940
2972
|
|
|
@@ -6500,7 +6532,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
6500
6532
|
*
|
|
6501
6533
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
6502
6534
|
*/
|
|
6503
|
-
read<T extends
|
|
6535
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
6504
6536
|
/**
|
|
6505
6537
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
6506
6538
|
*
|
|
@@ -10506,7 +10538,7 @@ interface WebSocket extends EventTarget {
|
|
|
10506
10538
|
*
|
|
10507
10539
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
10508
10540
|
*/
|
|
10509
|
-
send(data:
|
|
10541
|
+
send(data: BufferSource | Blob | string): void;
|
|
10510
10542
|
readonly CONNECTING: 0;
|
|
10511
10543
|
readonly OPEN: 1;
|
|
10512
10544
|
readonly CLOSING: 2;
|