@types/webworker 0.0.37 → 0.0.39
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
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.39 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.39.
|
package/index.d.ts
CHANGED
|
@@ -2795,7 +2795,7 @@ interface Crypto {
|
|
|
2795
2795
|
*
|
|
2796
2796
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2797
2797
|
*/
|
|
2798
|
-
getRandomValues<T extends
|
|
2798
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2799
2799
|
/**
|
|
2800
2800
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2801
2801
|
* Available only in secure contexts.
|
|
@@ -3077,11 +3077,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
3077
3077
|
declare var DOMMatrix: {
|
|
3078
3078
|
prototype: DOMMatrix;
|
|
3079
3079
|
new(init?: string | number[]): DOMMatrix;
|
|
3080
|
-
/**
|
|
3080
|
+
/**
|
|
3081
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
3082
|
+
*
|
|
3083
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
3084
|
+
*/
|
|
3081
3085
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
|
|
3082
|
-
/**
|
|
3086
|
+
/**
|
|
3087
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
3088
|
+
*
|
|
3089
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
3090
|
+
*/
|
|
3083
3091
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
|
|
3084
|
-
/**
|
|
3092
|
+
/**
|
|
3093
|
+
* 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.
|
|
3094
|
+
*
|
|
3095
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
3096
|
+
*/
|
|
3085
3097
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
3086
3098
|
};
|
|
3087
3099
|
|
|
@@ -3250,11 +3262,23 @@ interface DOMMatrixReadOnly {
|
|
|
3250
3262
|
declare var DOMMatrixReadOnly: {
|
|
3251
3263
|
prototype: DOMMatrixReadOnly;
|
|
3252
3264
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
3253
|
-
/**
|
|
3265
|
+
/**
|
|
3266
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
3267
|
+
*
|
|
3268
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
3269
|
+
*/
|
|
3254
3270
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
3255
|
-
/**
|
|
3271
|
+
/**
|
|
3272
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
3273
|
+
*
|
|
3274
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
3275
|
+
*/
|
|
3256
3276
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
3257
|
-
/**
|
|
3277
|
+
/**
|
|
3278
|
+
* 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.
|
|
3279
|
+
*
|
|
3280
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
3281
|
+
*/
|
|
3258
3282
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
3259
3283
|
};
|
|
3260
3284
|
|
|
@@ -3403,9 +3427,17 @@ interface DOMQuad {
|
|
|
3403
3427
|
declare var DOMQuad: {
|
|
3404
3428
|
prototype: DOMQuad;
|
|
3405
3429
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
3406
|
-
/**
|
|
3430
|
+
/**
|
|
3431
|
+
* 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.
|
|
3432
|
+
*
|
|
3433
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
3434
|
+
*/
|
|
3407
3435
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
3408
|
-
/**
|
|
3436
|
+
/**
|
|
3437
|
+
* 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.
|
|
3438
|
+
*
|
|
3439
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
3440
|
+
*/
|
|
3409
3441
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
3410
3442
|
};
|
|
3411
3443
|
|
|
@@ -7605,7 +7637,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7605
7637
|
*
|
|
7606
7638
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7607
7639
|
*/
|
|
7608
|
-
read<T extends
|
|
7640
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7609
7641
|
/**
|
|
7610
7642
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7611
7643
|
*
|
|
@@ -11943,7 +11975,7 @@ interface WebSocket extends EventTarget {
|
|
|
11943
11975
|
*
|
|
11944
11976
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
11945
11977
|
*/
|
|
11946
|
-
send(data:
|
|
11978
|
+
send(data: BufferSource | Blob | string): void;
|
|
11947
11979
|
readonly CONNECTING: 0;
|
|
11948
11980
|
readonly OPEN: 1;
|
|
11949
11981
|
readonly CLOSING: 2;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -2792,7 +2792,7 @@ interface Crypto {
|
|
|
2792
2792
|
*
|
|
2793
2793
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2794
2794
|
*/
|
|
2795
|
-
getRandomValues<T extends
|
|
2795
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2796
2796
|
/**
|
|
2797
2797
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2798
2798
|
* Available only in secure contexts.
|
|
@@ -3074,11 +3074,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
3074
3074
|
declare var DOMMatrix: {
|
|
3075
3075
|
prototype: DOMMatrix;
|
|
3076
3076
|
new(init?: string | number[]): DOMMatrix;
|
|
3077
|
-
/**
|
|
3077
|
+
/**
|
|
3078
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
3079
|
+
*
|
|
3080
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
3081
|
+
*/
|
|
3078
3082
|
fromFloat32Array(array32: Float32Array): DOMMatrix;
|
|
3079
|
-
/**
|
|
3083
|
+
/**
|
|
3084
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
3085
|
+
*
|
|
3086
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
3087
|
+
*/
|
|
3080
3088
|
fromFloat64Array(array64: Float64Array): DOMMatrix;
|
|
3081
|
-
/**
|
|
3089
|
+
/**
|
|
3090
|
+
* 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.
|
|
3091
|
+
*
|
|
3092
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
3093
|
+
*/
|
|
3082
3094
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
3083
3095
|
};
|
|
3084
3096
|
|
|
@@ -3247,11 +3259,23 @@ interface DOMMatrixReadOnly {
|
|
|
3247
3259
|
declare var DOMMatrixReadOnly: {
|
|
3248
3260
|
prototype: DOMMatrixReadOnly;
|
|
3249
3261
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
3250
|
-
/**
|
|
3262
|
+
/**
|
|
3263
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
3264
|
+
*
|
|
3265
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
3266
|
+
*/
|
|
3251
3267
|
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
|
|
3252
|
-
/**
|
|
3268
|
+
/**
|
|
3269
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
3270
|
+
*
|
|
3271
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
3272
|
+
*/
|
|
3253
3273
|
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
|
|
3254
|
-
/**
|
|
3274
|
+
/**
|
|
3275
|
+
* 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.
|
|
3276
|
+
*
|
|
3277
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
3278
|
+
*/
|
|
3255
3279
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
3256
3280
|
};
|
|
3257
3281
|
|
|
@@ -3400,9 +3424,17 @@ interface DOMQuad {
|
|
|
3400
3424
|
declare var DOMQuad: {
|
|
3401
3425
|
prototype: DOMQuad;
|
|
3402
3426
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
3403
|
-
/**
|
|
3427
|
+
/**
|
|
3428
|
+
* 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.
|
|
3429
|
+
*
|
|
3430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
3431
|
+
*/
|
|
3404
3432
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
3405
|
-
/**
|
|
3433
|
+
/**
|
|
3434
|
+
* 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.
|
|
3435
|
+
*
|
|
3436
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
3437
|
+
*/
|
|
3406
3438
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
3407
3439
|
};
|
|
3408
3440
|
|
|
@@ -7602,7 +7634,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7602
7634
|
*
|
|
7603
7635
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7604
7636
|
*/
|
|
7605
|
-
read<T extends
|
|
7637
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7606
7638
|
/**
|
|
7607
7639
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7608
7640
|
*
|
|
@@ -11940,7 +11972,7 @@ interface WebSocket extends EventTarget {
|
|
|
11940
11972
|
*
|
|
11941
11973
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
11942
11974
|
*/
|
|
11943
|
-
send(data:
|
|
11975
|
+
send(data: BufferSource | Blob | string): void;
|
|
11944
11976
|
readonly CONNECTING: 0;
|
|
11945
11977
|
readonly OPEN: 1;
|
|
11946
11978
|
readonly CLOSING: 2;
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -2792,7 +2792,7 @@ interface Crypto {
|
|
|
2792
2792
|
*
|
|
2793
2793
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2794
2794
|
*/
|
|
2795
|
-
getRandomValues<T extends
|
|
2795
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2796
2796
|
/**
|
|
2797
2797
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2798
2798
|
* Available only in secure contexts.
|
|
@@ -3074,11 +3074,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
3074
3074
|
declare var DOMMatrix: {
|
|
3075
3075
|
prototype: DOMMatrix;
|
|
3076
3076
|
new(init?: string | number[]): DOMMatrix;
|
|
3077
|
-
/**
|
|
3077
|
+
/**
|
|
3078
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
3079
|
+
*
|
|
3080
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
3081
|
+
*/
|
|
3078
3082
|
fromFloat32Array(array32: Float32Array): DOMMatrix;
|
|
3079
|
-
/**
|
|
3083
|
+
/**
|
|
3084
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
3085
|
+
*
|
|
3086
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
3087
|
+
*/
|
|
3080
3088
|
fromFloat64Array(array64: Float64Array): DOMMatrix;
|
|
3081
|
-
/**
|
|
3089
|
+
/**
|
|
3090
|
+
* 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.
|
|
3091
|
+
*
|
|
3092
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
3093
|
+
*/
|
|
3082
3094
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
3083
3095
|
};
|
|
3084
3096
|
|
|
@@ -3247,11 +3259,23 @@ interface DOMMatrixReadOnly {
|
|
|
3247
3259
|
declare var DOMMatrixReadOnly: {
|
|
3248
3260
|
prototype: DOMMatrixReadOnly;
|
|
3249
3261
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
3250
|
-
/**
|
|
3262
|
+
/**
|
|
3263
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
3264
|
+
*
|
|
3265
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
3266
|
+
*/
|
|
3251
3267
|
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
|
|
3252
|
-
/**
|
|
3268
|
+
/**
|
|
3269
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
3270
|
+
*
|
|
3271
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
3272
|
+
*/
|
|
3253
3273
|
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
|
|
3254
|
-
/**
|
|
3274
|
+
/**
|
|
3275
|
+
* 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.
|
|
3276
|
+
*
|
|
3277
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
3278
|
+
*/
|
|
3255
3279
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
3256
3280
|
};
|
|
3257
3281
|
|
|
@@ -3400,9 +3424,17 @@ interface DOMQuad {
|
|
|
3400
3424
|
declare var DOMQuad: {
|
|
3401
3425
|
prototype: DOMQuad;
|
|
3402
3426
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
3403
|
-
/**
|
|
3427
|
+
/**
|
|
3428
|
+
* 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.
|
|
3429
|
+
*
|
|
3430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
3431
|
+
*/
|
|
3404
3432
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
3405
|
-
/**
|
|
3433
|
+
/**
|
|
3434
|
+
* 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.
|
|
3435
|
+
*
|
|
3436
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
3437
|
+
*/
|
|
3406
3438
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
3407
3439
|
};
|
|
3408
3440
|
|
|
@@ -7602,7 +7634,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7602
7634
|
*
|
|
7603
7635
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7604
7636
|
*/
|
|
7605
|
-
read<T extends
|
|
7637
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7606
7638
|
/**
|
|
7607
7639
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7608
7640
|
*
|
|
@@ -11940,7 +11972,7 @@ interface WebSocket extends EventTarget {
|
|
|
11940
11972
|
*
|
|
11941
11973
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
11942
11974
|
*/
|
|
11943
|
-
send(data:
|
|
11975
|
+
send(data: BufferSource | Blob | string): void;
|
|
11944
11976
|
readonly CONNECTING: 0;
|
|
11945
11977
|
readonly OPEN: 1;
|
|
11946
11978
|
readonly CLOSING: 2;
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -2792,7 +2792,7 @@ interface Crypto {
|
|
|
2792
2792
|
*
|
|
2793
2793
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2794
2794
|
*/
|
|
2795
|
-
getRandomValues<T extends
|
|
2795
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2796
2796
|
/**
|
|
2797
2797
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2798
2798
|
* Available only in secure contexts.
|
|
@@ -3074,11 +3074,23 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
3074
3074
|
declare var DOMMatrix: {
|
|
3075
3075
|
prototype: DOMMatrix;
|
|
3076
3076
|
new(init?: string | number[]): DOMMatrix;
|
|
3077
|
-
/**
|
|
3077
|
+
/**
|
|
3078
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.
|
|
3079
|
+
*
|
|
3080
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat32Array_static)
|
|
3081
|
+
*/
|
|
3078
3082
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrix;
|
|
3079
|
-
/**
|
|
3083
|
+
/**
|
|
3084
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.
|
|
3085
|
+
*
|
|
3086
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromFloat64Array_static)
|
|
3087
|
+
*/
|
|
3080
3088
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrix;
|
|
3081
|
-
/**
|
|
3089
|
+
/**
|
|
3090
|
+
* 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.
|
|
3091
|
+
*
|
|
3092
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/fromMatrix_static)
|
|
3093
|
+
*/
|
|
3082
3094
|
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
|
|
3083
3095
|
};
|
|
3084
3096
|
|
|
@@ -3247,11 +3259,23 @@ interface DOMMatrixReadOnly {
|
|
|
3247
3259
|
declare var DOMMatrixReadOnly: {
|
|
3248
3260
|
prototype: DOMMatrixReadOnly;
|
|
3249
3261
|
new(init?: string | number[]): DOMMatrixReadOnly;
|
|
3250
|
-
/**
|
|
3262
|
+
/**
|
|
3263
|
+
* The **`fromFloat32Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of single-precision (32-bit) floating-point values.
|
|
3264
|
+
*
|
|
3265
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat32Array_static)
|
|
3266
|
+
*/
|
|
3251
3267
|
fromFloat32Array(array32: Float32Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
3252
|
-
/**
|
|
3268
|
+
/**
|
|
3269
|
+
* The **`fromFloat64Array()`** static method of the DOMMatrixReadOnly interface creates a new DOMMatrixReadOnly object given an array of double-precision (64-bit) floating-point values.
|
|
3270
|
+
*
|
|
3271
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromFloat64Array_static)
|
|
3272
|
+
*/
|
|
3253
3273
|
fromFloat64Array(array64: Float64Array<ArrayBuffer>): DOMMatrixReadOnly;
|
|
3254
|
-
/**
|
|
3274
|
+
/**
|
|
3275
|
+
* 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.
|
|
3276
|
+
*
|
|
3277
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/fromMatrix_static)
|
|
3278
|
+
*/
|
|
3255
3279
|
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
|
|
3256
3280
|
};
|
|
3257
3281
|
|
|
@@ -3400,9 +3424,17 @@ interface DOMQuad {
|
|
|
3400
3424
|
declare var DOMQuad: {
|
|
3401
3425
|
prototype: DOMQuad;
|
|
3402
3426
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
3403
|
-
/**
|
|
3427
|
+
/**
|
|
3428
|
+
* 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.
|
|
3429
|
+
*
|
|
3430
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
3431
|
+
*/
|
|
3404
3432
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
3405
|
-
/**
|
|
3433
|
+
/**
|
|
3434
|
+
* 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.
|
|
3435
|
+
*
|
|
3436
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
3437
|
+
*/
|
|
3406
3438
|
fromRect(other?: DOMRectInit): DOMQuad;
|
|
3407
3439
|
};
|
|
3408
3440
|
|
|
@@ -7602,7 +7634,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
|
7602
7634
|
*
|
|
7603
7635
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
7604
7636
|
*/
|
|
7605
|
-
read<T extends
|
|
7637
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
7606
7638
|
/**
|
|
7607
7639
|
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
7608
7640
|
*
|
|
@@ -11940,7 +11972,7 @@ interface WebSocket extends EventTarget {
|
|
|
11940
11972
|
*
|
|
11941
11973
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
11942
11974
|
*/
|
|
11943
|
-
send(data:
|
|
11975
|
+
send(data: BufferSource | Blob | string): void;
|
|
11944
11976
|
readonly CONNECTING: 0;
|
|
11945
11977
|
readonly OPEN: 1;
|
|
11946
11978
|
readonly CLOSING: 2;
|