@types/webworker 0.0.40 → 0.0.42
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 +31 -5
- package/package.json +1 -1
- package/ts5.5/index.d.ts +31 -5
- package/ts5.6/index.d.ts +31 -5
- package/ts5.9/index.d.ts +31 -5
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.42 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.42.
|
package/index.d.ts
CHANGED
|
@@ -2673,7 +2673,9 @@ declare var CloseEvent: {
|
|
|
2673
2673
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2674
2674
|
*/
|
|
2675
2675
|
interface CompressionStream extends GenericTransformStream {
|
|
2676
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2676
2677
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2678
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2677
2679
|
readonly writable: WritableStream<BufferSource>;
|
|
2678
2680
|
}
|
|
2679
2681
|
|
|
@@ -3595,7 +3597,9 @@ declare var DOMStringList: {
|
|
|
3595
3597
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3596
3598
|
*/
|
|
3597
3599
|
interface DecompressionStream extends GenericTransformStream {
|
|
3600
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3598
3601
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
3602
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3599
3603
|
readonly writable: WritableStream<BufferSource>;
|
|
3600
3604
|
}
|
|
3601
3605
|
|
|
@@ -4357,7 +4361,7 @@ interface FileReader extends EventTarget {
|
|
|
4357
4361
|
*
|
|
4358
4362
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
|
|
4359
4363
|
*/
|
|
4360
|
-
readonly readyState:
|
|
4364
|
+
readonly readyState: 0 | 1 | 2;
|
|
4361
4365
|
/**
|
|
4362
4366
|
* The **`result`** read-only property of the FileReader interface returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.
|
|
4363
4367
|
*
|
|
@@ -5779,6 +5783,7 @@ declare var ImageDecoder: {
|
|
|
5779
5783
|
|
|
5780
5784
|
/**
|
|
5781
5785
|
* The **`ImageTrack`** interface of the WebCodecs API represents an individual image track.
|
|
5786
|
+
* Available only in secure contexts.
|
|
5782
5787
|
*
|
|
5783
5788
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
|
|
5784
5789
|
*/
|
|
@@ -5816,6 +5821,7 @@ declare var ImageTrack: {
|
|
|
5816
5821
|
|
|
5817
5822
|
/**
|
|
5818
5823
|
* The **`ImageTrackList`** interface of the WebCodecs API represents a list of image tracks.
|
|
5824
|
+
* Available only in secure contexts.
|
|
5819
5825
|
*
|
|
5820
5826
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
|
|
5821
5827
|
*/
|
|
@@ -7420,7 +7426,11 @@ interface RTCEncodedAudioFrame {
|
|
|
7420
7426
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
|
|
7421
7427
|
*/
|
|
7422
7428
|
data: ArrayBuffer;
|
|
7423
|
-
/**
|
|
7429
|
+
/**
|
|
7430
|
+
* The **`timestamp`** read-only property of the RTCEncodedAudioFrame interface indicates the time at which frame sampling started.
|
|
7431
|
+
*
|
|
7432
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp)
|
|
7433
|
+
*/
|
|
7424
7434
|
readonly timestamp: number;
|
|
7425
7435
|
/**
|
|
7426
7436
|
* The **`getMetadata()`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
|
|
@@ -7447,7 +7457,11 @@ interface RTCEncodedVideoFrame {
|
|
|
7447
7457
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
|
|
7448
7458
|
*/
|
|
7449
7459
|
data: ArrayBuffer;
|
|
7450
|
-
/**
|
|
7460
|
+
/**
|
|
7461
|
+
* The **`timestamp`** read-only property of the RTCEncodedVideoFrame interface indicates the time at which frame sampling started.
|
|
7462
|
+
*
|
|
7463
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp)
|
|
7464
|
+
*/
|
|
7451
7465
|
readonly timestamp: number;
|
|
7452
7466
|
/**
|
|
7453
7467
|
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
|
|
@@ -7945,7 +7959,7 @@ declare var Response: {
|
|
|
7945
7959
|
*/
|
|
7946
7960
|
error(): Response;
|
|
7947
7961
|
/**
|
|
7948
|
-
* The **`json()`** method of the Response interface
|
|
7962
|
+
* The **`json()`** static method of the Response interface returns a Response that contains the provided JSON data as body, and a Content-Type header which is set to application/json. The response status, status message, and additional headers can also be set.
|
|
7949
7963
|
*
|
|
7950
7964
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
|
|
7951
7965
|
*/
|
|
@@ -8664,7 +8678,9 @@ interface TextDecoderCommon {
|
|
|
8664
8678
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8665
8679
|
*/
|
|
8666
8680
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8681
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8667
8682
|
readonly readable: ReadableStream<string>;
|
|
8683
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8668
8684
|
readonly writable: WritableStream<BufferSource>;
|
|
8669
8685
|
}
|
|
8670
8686
|
|
|
@@ -8713,7 +8729,9 @@ interface TextEncoderCommon {
|
|
|
8713
8729
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8714
8730
|
*/
|
|
8715
8731
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8732
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8716
8733
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
8734
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8717
8735
|
readonly writable: WritableStream<string>;
|
|
8718
8736
|
}
|
|
8719
8737
|
|
|
@@ -12126,7 +12144,11 @@ interface WebTransportDatagramDuplexStream {
|
|
|
12126
12144
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
|
|
12127
12145
|
*/
|
|
12128
12146
|
readonly readable: ReadableStream;
|
|
12129
|
-
/**
|
|
12147
|
+
/**
|
|
12148
|
+
* The **`writable`** read-only property of the WebTransportDatagramDuplexStream interface returns a WritableStream instance that can be used to unreliably write outgoing datagrams to the stream.
|
|
12149
|
+
*
|
|
12150
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
|
|
12151
|
+
*/
|
|
12130
12152
|
readonly writable: WritableStream;
|
|
12131
12153
|
}
|
|
12132
12154
|
|
|
@@ -12744,6 +12766,7 @@ declare var XMLHttpRequestUpload: {
|
|
|
12744
12766
|
};
|
|
12745
12767
|
|
|
12746
12768
|
declare namespace WebAssembly {
|
|
12769
|
+
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
|
|
12747
12770
|
interface CompileError extends Error {
|
|
12748
12771
|
}
|
|
12749
12772
|
|
|
@@ -12818,6 +12841,7 @@ declare namespace WebAssembly {
|
|
|
12818
12841
|
new(module: Module, importObject?: Imports): Instance;
|
|
12819
12842
|
};
|
|
12820
12843
|
|
|
12844
|
+
/** The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides traps from the start function). */
|
|
12821
12845
|
interface LinkError extends Error {
|
|
12822
12846
|
}
|
|
12823
12847
|
|
|
@@ -12883,6 +12907,7 @@ declare namespace WebAssembly {
|
|
|
12883
12907
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
12884
12908
|
};
|
|
12885
12909
|
|
|
12910
|
+
/** The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a trap. */
|
|
12886
12911
|
interface RuntimeError extends Error {
|
|
12887
12912
|
}
|
|
12888
12913
|
|
|
@@ -13133,6 +13158,7 @@ interface Console {
|
|
|
13133
13158
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
|
|
13134
13159
|
*/
|
|
13135
13160
|
timeLog(label?: string, ...data: any[]): void;
|
|
13161
|
+
/** The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool (Firefox bug 1387528, Chrome). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. */
|
|
13136
13162
|
timeStamp(label?: string): void;
|
|
13137
13163
|
/**
|
|
13138
13164
|
* The **`console.trace()`** static method outputs a stack trace to the console.
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -2670,7 +2670,9 @@ declare var CloseEvent: {
|
|
|
2670
2670
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2671
2671
|
*/
|
|
2672
2672
|
interface CompressionStream extends GenericTransformStream {
|
|
2673
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2673
2674
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2675
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2674
2676
|
readonly writable: WritableStream<BufferSource>;
|
|
2675
2677
|
}
|
|
2676
2678
|
|
|
@@ -3592,7 +3594,9 @@ declare var DOMStringList: {
|
|
|
3592
3594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3593
3595
|
*/
|
|
3594
3596
|
interface DecompressionStream extends GenericTransformStream {
|
|
3597
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3595
3598
|
readonly readable: ReadableStream<Uint8Array>;
|
|
3599
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3596
3600
|
readonly writable: WritableStream<BufferSource>;
|
|
3597
3601
|
}
|
|
3598
3602
|
|
|
@@ -4354,7 +4358,7 @@ interface FileReader extends EventTarget {
|
|
|
4354
4358
|
*
|
|
4355
4359
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
|
|
4356
4360
|
*/
|
|
4357
|
-
readonly readyState:
|
|
4361
|
+
readonly readyState: 0 | 1 | 2;
|
|
4358
4362
|
/**
|
|
4359
4363
|
* The **`result`** read-only property of the FileReader interface returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.
|
|
4360
4364
|
*
|
|
@@ -5776,6 +5780,7 @@ declare var ImageDecoder: {
|
|
|
5776
5780
|
|
|
5777
5781
|
/**
|
|
5778
5782
|
* The **`ImageTrack`** interface of the WebCodecs API represents an individual image track.
|
|
5783
|
+
* Available only in secure contexts.
|
|
5779
5784
|
*
|
|
5780
5785
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
|
|
5781
5786
|
*/
|
|
@@ -5813,6 +5818,7 @@ declare var ImageTrack: {
|
|
|
5813
5818
|
|
|
5814
5819
|
/**
|
|
5815
5820
|
* The **`ImageTrackList`** interface of the WebCodecs API represents a list of image tracks.
|
|
5821
|
+
* Available only in secure contexts.
|
|
5816
5822
|
*
|
|
5817
5823
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
|
|
5818
5824
|
*/
|
|
@@ -7417,7 +7423,11 @@ interface RTCEncodedAudioFrame {
|
|
|
7417
7423
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
|
|
7418
7424
|
*/
|
|
7419
7425
|
data: ArrayBuffer;
|
|
7420
|
-
/**
|
|
7426
|
+
/**
|
|
7427
|
+
* The **`timestamp`** read-only property of the RTCEncodedAudioFrame interface indicates the time at which frame sampling started.
|
|
7428
|
+
*
|
|
7429
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp)
|
|
7430
|
+
*/
|
|
7421
7431
|
readonly timestamp: number;
|
|
7422
7432
|
/**
|
|
7423
7433
|
* The **`getMetadata()`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
|
|
@@ -7444,7 +7454,11 @@ interface RTCEncodedVideoFrame {
|
|
|
7444
7454
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
|
|
7445
7455
|
*/
|
|
7446
7456
|
data: ArrayBuffer;
|
|
7447
|
-
/**
|
|
7457
|
+
/**
|
|
7458
|
+
* The **`timestamp`** read-only property of the RTCEncodedVideoFrame interface indicates the time at which frame sampling started.
|
|
7459
|
+
*
|
|
7460
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp)
|
|
7461
|
+
*/
|
|
7448
7462
|
readonly timestamp: number;
|
|
7449
7463
|
/**
|
|
7450
7464
|
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
|
|
@@ -7942,7 +7956,7 @@ declare var Response: {
|
|
|
7942
7956
|
*/
|
|
7943
7957
|
error(): Response;
|
|
7944
7958
|
/**
|
|
7945
|
-
* The **`json()`** method of the Response interface
|
|
7959
|
+
* The **`json()`** static method of the Response interface returns a Response that contains the provided JSON data as body, and a Content-Type header which is set to application/json. The response status, status message, and additional headers can also be set.
|
|
7946
7960
|
*
|
|
7947
7961
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
|
|
7948
7962
|
*/
|
|
@@ -8661,7 +8675,9 @@ interface TextDecoderCommon {
|
|
|
8661
8675
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8662
8676
|
*/
|
|
8663
8677
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8678
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8664
8679
|
readonly readable: ReadableStream<string>;
|
|
8680
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8665
8681
|
readonly writable: WritableStream<BufferSource>;
|
|
8666
8682
|
}
|
|
8667
8683
|
|
|
@@ -8710,7 +8726,9 @@ interface TextEncoderCommon {
|
|
|
8710
8726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8711
8727
|
*/
|
|
8712
8728
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8729
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8713
8730
|
readonly readable: ReadableStream<Uint8Array>;
|
|
8731
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8714
8732
|
readonly writable: WritableStream<string>;
|
|
8715
8733
|
}
|
|
8716
8734
|
|
|
@@ -12123,7 +12141,11 @@ interface WebTransportDatagramDuplexStream {
|
|
|
12123
12141
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
|
|
12124
12142
|
*/
|
|
12125
12143
|
readonly readable: ReadableStream;
|
|
12126
|
-
/**
|
|
12144
|
+
/**
|
|
12145
|
+
* The **`writable`** read-only property of the WebTransportDatagramDuplexStream interface returns a WritableStream instance that can be used to unreliably write outgoing datagrams to the stream.
|
|
12146
|
+
*
|
|
12147
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
|
|
12148
|
+
*/
|
|
12127
12149
|
readonly writable: WritableStream;
|
|
12128
12150
|
}
|
|
12129
12151
|
|
|
@@ -12741,6 +12763,7 @@ declare var XMLHttpRequestUpload: {
|
|
|
12741
12763
|
};
|
|
12742
12764
|
|
|
12743
12765
|
declare namespace WebAssembly {
|
|
12766
|
+
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
|
|
12744
12767
|
interface CompileError extends Error {
|
|
12745
12768
|
}
|
|
12746
12769
|
|
|
@@ -12815,6 +12838,7 @@ declare namespace WebAssembly {
|
|
|
12815
12838
|
new(module: Module, importObject?: Imports): Instance;
|
|
12816
12839
|
};
|
|
12817
12840
|
|
|
12841
|
+
/** The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides traps from the start function). */
|
|
12818
12842
|
interface LinkError extends Error {
|
|
12819
12843
|
}
|
|
12820
12844
|
|
|
@@ -12880,6 +12904,7 @@ declare namespace WebAssembly {
|
|
|
12880
12904
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
12881
12905
|
};
|
|
12882
12906
|
|
|
12907
|
+
/** The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a trap. */
|
|
12883
12908
|
interface RuntimeError extends Error {
|
|
12884
12909
|
}
|
|
12885
12910
|
|
|
@@ -13130,6 +13155,7 @@ interface Console {
|
|
|
13130
13155
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
|
|
13131
13156
|
*/
|
|
13132
13157
|
timeLog(label?: string, ...data: any[]): void;
|
|
13158
|
+
/** The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool (Firefox bug 1387528, Chrome). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. */
|
|
13133
13159
|
timeStamp(label?: string): void;
|
|
13134
13160
|
/**
|
|
13135
13161
|
* The **`console.trace()`** static method outputs a stack trace to the console.
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -2670,7 +2670,9 @@ declare var CloseEvent: {
|
|
|
2670
2670
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2671
2671
|
*/
|
|
2672
2672
|
interface CompressionStream extends GenericTransformStream {
|
|
2673
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2673
2674
|
readonly readable: ReadableStream<Uint8Array>;
|
|
2675
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2674
2676
|
readonly writable: WritableStream<BufferSource>;
|
|
2675
2677
|
}
|
|
2676
2678
|
|
|
@@ -3592,7 +3594,9 @@ declare var DOMStringList: {
|
|
|
3592
3594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3593
3595
|
*/
|
|
3594
3596
|
interface DecompressionStream extends GenericTransformStream {
|
|
3597
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3595
3598
|
readonly readable: ReadableStream<Uint8Array>;
|
|
3599
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3596
3600
|
readonly writable: WritableStream<BufferSource>;
|
|
3597
3601
|
}
|
|
3598
3602
|
|
|
@@ -4354,7 +4358,7 @@ interface FileReader extends EventTarget {
|
|
|
4354
4358
|
*
|
|
4355
4359
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
|
|
4356
4360
|
*/
|
|
4357
|
-
readonly readyState:
|
|
4361
|
+
readonly readyState: 0 | 1 | 2;
|
|
4358
4362
|
/**
|
|
4359
4363
|
* The **`result`** read-only property of the FileReader interface returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.
|
|
4360
4364
|
*
|
|
@@ -5776,6 +5780,7 @@ declare var ImageDecoder: {
|
|
|
5776
5780
|
|
|
5777
5781
|
/**
|
|
5778
5782
|
* The **`ImageTrack`** interface of the WebCodecs API represents an individual image track.
|
|
5783
|
+
* Available only in secure contexts.
|
|
5779
5784
|
*
|
|
5780
5785
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
|
|
5781
5786
|
*/
|
|
@@ -5813,6 +5818,7 @@ declare var ImageTrack: {
|
|
|
5813
5818
|
|
|
5814
5819
|
/**
|
|
5815
5820
|
* The **`ImageTrackList`** interface of the WebCodecs API represents a list of image tracks.
|
|
5821
|
+
* Available only in secure contexts.
|
|
5816
5822
|
*
|
|
5817
5823
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
|
|
5818
5824
|
*/
|
|
@@ -7417,7 +7423,11 @@ interface RTCEncodedAudioFrame {
|
|
|
7417
7423
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
|
|
7418
7424
|
*/
|
|
7419
7425
|
data: ArrayBuffer;
|
|
7420
|
-
/**
|
|
7426
|
+
/**
|
|
7427
|
+
* The **`timestamp`** read-only property of the RTCEncodedAudioFrame interface indicates the time at which frame sampling started.
|
|
7428
|
+
*
|
|
7429
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp)
|
|
7430
|
+
*/
|
|
7421
7431
|
readonly timestamp: number;
|
|
7422
7432
|
/**
|
|
7423
7433
|
* The **`getMetadata()`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
|
|
@@ -7444,7 +7454,11 @@ interface RTCEncodedVideoFrame {
|
|
|
7444
7454
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
|
|
7445
7455
|
*/
|
|
7446
7456
|
data: ArrayBuffer;
|
|
7447
|
-
/**
|
|
7457
|
+
/**
|
|
7458
|
+
* The **`timestamp`** read-only property of the RTCEncodedVideoFrame interface indicates the time at which frame sampling started.
|
|
7459
|
+
*
|
|
7460
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp)
|
|
7461
|
+
*/
|
|
7448
7462
|
readonly timestamp: number;
|
|
7449
7463
|
/**
|
|
7450
7464
|
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
|
|
@@ -7942,7 +7956,7 @@ declare var Response: {
|
|
|
7942
7956
|
*/
|
|
7943
7957
|
error(): Response;
|
|
7944
7958
|
/**
|
|
7945
|
-
* The **`json()`** method of the Response interface
|
|
7959
|
+
* The **`json()`** static method of the Response interface returns a Response that contains the provided JSON data as body, and a Content-Type header which is set to application/json. The response status, status message, and additional headers can also be set.
|
|
7946
7960
|
*
|
|
7947
7961
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
|
|
7948
7962
|
*/
|
|
@@ -8661,7 +8675,9 @@ interface TextDecoderCommon {
|
|
|
8661
8675
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8662
8676
|
*/
|
|
8663
8677
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8678
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8664
8679
|
readonly readable: ReadableStream<string>;
|
|
8680
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8665
8681
|
readonly writable: WritableStream<BufferSource>;
|
|
8666
8682
|
}
|
|
8667
8683
|
|
|
@@ -8710,7 +8726,9 @@ interface TextEncoderCommon {
|
|
|
8710
8726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8711
8727
|
*/
|
|
8712
8728
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8729
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8713
8730
|
readonly readable: ReadableStream<Uint8Array>;
|
|
8731
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8714
8732
|
readonly writable: WritableStream<string>;
|
|
8715
8733
|
}
|
|
8716
8734
|
|
|
@@ -12123,7 +12141,11 @@ interface WebTransportDatagramDuplexStream {
|
|
|
12123
12141
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
|
|
12124
12142
|
*/
|
|
12125
12143
|
readonly readable: ReadableStream;
|
|
12126
|
-
/**
|
|
12144
|
+
/**
|
|
12145
|
+
* The **`writable`** read-only property of the WebTransportDatagramDuplexStream interface returns a WritableStream instance that can be used to unreliably write outgoing datagrams to the stream.
|
|
12146
|
+
*
|
|
12147
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
|
|
12148
|
+
*/
|
|
12127
12149
|
readonly writable: WritableStream;
|
|
12128
12150
|
}
|
|
12129
12151
|
|
|
@@ -12741,6 +12763,7 @@ declare var XMLHttpRequestUpload: {
|
|
|
12741
12763
|
};
|
|
12742
12764
|
|
|
12743
12765
|
declare namespace WebAssembly {
|
|
12766
|
+
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
|
|
12744
12767
|
interface CompileError extends Error {
|
|
12745
12768
|
}
|
|
12746
12769
|
|
|
@@ -12815,6 +12838,7 @@ declare namespace WebAssembly {
|
|
|
12815
12838
|
new(module: Module, importObject?: Imports): Instance;
|
|
12816
12839
|
};
|
|
12817
12840
|
|
|
12841
|
+
/** The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides traps from the start function). */
|
|
12818
12842
|
interface LinkError extends Error {
|
|
12819
12843
|
}
|
|
12820
12844
|
|
|
@@ -12880,6 +12904,7 @@ declare namespace WebAssembly {
|
|
|
12880
12904
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
12881
12905
|
};
|
|
12882
12906
|
|
|
12907
|
+
/** The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a trap. */
|
|
12883
12908
|
interface RuntimeError extends Error {
|
|
12884
12909
|
}
|
|
12885
12910
|
|
|
@@ -13130,6 +13155,7 @@ interface Console {
|
|
|
13130
13155
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
|
|
13131
13156
|
*/
|
|
13132
13157
|
timeLog(label?: string, ...data: any[]): void;
|
|
13158
|
+
/** The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool (Firefox bug 1387528, Chrome). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. */
|
|
13133
13159
|
timeStamp(label?: string): void;
|
|
13134
13160
|
/**
|
|
13135
13161
|
* The **`console.trace()`** static method outputs a stack trace to the console.
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -2670,7 +2670,9 @@ declare var CloseEvent: {
|
|
|
2670
2670
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
2671
2671
|
*/
|
|
2672
2672
|
interface CompressionStream extends GenericTransformStream {
|
|
2673
|
+
/** The **`readable`** read-only property of the CompressionStream interface returns a ReadableStream. */
|
|
2673
2674
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2675
|
+
/** The **`writable`** read-only property of the CompressionStream interface returns a WritableStream. */
|
|
2674
2676
|
readonly writable: WritableStream<BufferSource>;
|
|
2675
2677
|
}
|
|
2676
2678
|
|
|
@@ -3592,7 +3594,9 @@ declare var DOMStringList: {
|
|
|
3592
3594
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
3593
3595
|
*/
|
|
3594
3596
|
interface DecompressionStream extends GenericTransformStream {
|
|
3597
|
+
/** The **`readable`** read-only property of the DecompressionStream interface returns a ReadableStream. */
|
|
3595
3598
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
3599
|
+
/** The **`writable`** read-only property of the DecompressionStream interface returns a WritableStream. */
|
|
3596
3600
|
readonly writable: WritableStream<BufferSource>;
|
|
3597
3601
|
}
|
|
3598
3602
|
|
|
@@ -4354,7 +4358,7 @@ interface FileReader extends EventTarget {
|
|
|
4354
4358
|
*
|
|
4355
4359
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
|
|
4356
4360
|
*/
|
|
4357
|
-
readonly readyState:
|
|
4361
|
+
readonly readyState: 0 | 1 | 2;
|
|
4358
4362
|
/**
|
|
4359
4363
|
* The **`result`** read-only property of the FileReader interface returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.
|
|
4360
4364
|
*
|
|
@@ -5776,6 +5780,7 @@ declare var ImageDecoder: {
|
|
|
5776
5780
|
|
|
5777
5781
|
/**
|
|
5778
5782
|
* The **`ImageTrack`** interface of the WebCodecs API represents an individual image track.
|
|
5783
|
+
* Available only in secure contexts.
|
|
5779
5784
|
*
|
|
5780
5785
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrack)
|
|
5781
5786
|
*/
|
|
@@ -5813,6 +5818,7 @@ declare var ImageTrack: {
|
|
|
5813
5818
|
|
|
5814
5819
|
/**
|
|
5815
5820
|
* The **`ImageTrackList`** interface of the WebCodecs API represents a list of image tracks.
|
|
5821
|
+
* Available only in secure contexts.
|
|
5816
5822
|
*
|
|
5817
5823
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageTrackList)
|
|
5818
5824
|
*/
|
|
@@ -7417,7 +7423,11 @@ interface RTCEncodedAudioFrame {
|
|
|
7417
7423
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data)
|
|
7418
7424
|
*/
|
|
7419
7425
|
data: ArrayBuffer;
|
|
7420
|
-
/**
|
|
7426
|
+
/**
|
|
7427
|
+
* The **`timestamp`** read-only property of the RTCEncodedAudioFrame interface indicates the time at which frame sampling started.
|
|
7428
|
+
*
|
|
7429
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp)
|
|
7430
|
+
*/
|
|
7421
7431
|
readonly timestamp: number;
|
|
7422
7432
|
/**
|
|
7423
7433
|
* The **`getMetadata()`** method of the RTCEncodedAudioFrame interface returns an object containing the metadata associated with the frame.
|
|
@@ -7444,7 +7454,11 @@ interface RTCEncodedVideoFrame {
|
|
|
7444
7454
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data)
|
|
7445
7455
|
*/
|
|
7446
7456
|
data: ArrayBuffer;
|
|
7447
|
-
/**
|
|
7457
|
+
/**
|
|
7458
|
+
* The **`timestamp`** read-only property of the RTCEncodedVideoFrame interface indicates the time at which frame sampling started.
|
|
7459
|
+
*
|
|
7460
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp)
|
|
7461
|
+
*/
|
|
7448
7462
|
readonly timestamp: number;
|
|
7449
7463
|
/**
|
|
7450
7464
|
* The **`type`** read-only property of the RTCEncodedVideoFrame interface indicates whether this frame is a key frame, delta frame, or empty frame.
|
|
@@ -7942,7 +7956,7 @@ declare var Response: {
|
|
|
7942
7956
|
*/
|
|
7943
7957
|
error(): Response;
|
|
7944
7958
|
/**
|
|
7945
|
-
* The **`json()`** method of the Response interface
|
|
7959
|
+
* The **`json()`** static method of the Response interface returns a Response that contains the provided JSON data as body, and a Content-Type header which is set to application/json. The response status, status message, and additional headers can also be set.
|
|
7946
7960
|
*
|
|
7947
7961
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
|
|
7948
7962
|
*/
|
|
@@ -8661,7 +8675,9 @@ interface TextDecoderCommon {
|
|
|
8661
8675
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
8662
8676
|
*/
|
|
8663
8677
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
8678
|
+
/** The **`readable`** read-only property of the TextDecoderStream interface returns a ReadableStream. */
|
|
8664
8679
|
readonly readable: ReadableStream<string>;
|
|
8680
|
+
/** The **`writable`** read-only property of the TextDecoderStream interface returns a WritableStream. */
|
|
8665
8681
|
readonly writable: WritableStream<BufferSource>;
|
|
8666
8682
|
}
|
|
8667
8683
|
|
|
@@ -8710,7 +8726,9 @@ interface TextEncoderCommon {
|
|
|
8710
8726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
8711
8727
|
*/
|
|
8712
8728
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
8729
|
+
/** The **`readable`** read-only property of the TextEncoderStream interface returns a ReadableStream. */
|
|
8713
8730
|
readonly readable: ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
8731
|
+
/** The **`writable`** read-only property of the TextEncoderStream interface returns a WritableStream. */
|
|
8714
8732
|
readonly writable: WritableStream<string>;
|
|
8715
8733
|
}
|
|
8716
8734
|
|
|
@@ -12123,7 +12141,11 @@ interface WebTransportDatagramDuplexStream {
|
|
|
12123
12141
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable)
|
|
12124
12142
|
*/
|
|
12125
12143
|
readonly readable: ReadableStream;
|
|
12126
|
-
/**
|
|
12144
|
+
/**
|
|
12145
|
+
* The **`writable`** read-only property of the WebTransportDatagramDuplexStream interface returns a WritableStream instance that can be used to unreliably write outgoing datagrams to the stream.
|
|
12146
|
+
*
|
|
12147
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable)
|
|
12148
|
+
*/
|
|
12127
12149
|
readonly writable: WritableStream;
|
|
12128
12150
|
}
|
|
12129
12151
|
|
|
@@ -12741,6 +12763,7 @@ declare var XMLHttpRequestUpload: {
|
|
|
12741
12763
|
};
|
|
12742
12764
|
|
|
12743
12765
|
declare namespace WebAssembly {
|
|
12766
|
+
/** The **`WebAssembly.CompileError`** object indicates an error during WebAssembly decoding or validation. */
|
|
12744
12767
|
interface CompileError extends Error {
|
|
12745
12768
|
}
|
|
12746
12769
|
|
|
@@ -12815,6 +12838,7 @@ declare namespace WebAssembly {
|
|
|
12815
12838
|
new(module: Module, importObject?: Imports): Instance;
|
|
12816
12839
|
};
|
|
12817
12840
|
|
|
12841
|
+
/** The **`WebAssembly.LinkError`** object indicates an error during module instantiation (besides traps from the start function). */
|
|
12818
12842
|
interface LinkError extends Error {
|
|
12819
12843
|
}
|
|
12820
12844
|
|
|
@@ -12880,6 +12904,7 @@ declare namespace WebAssembly {
|
|
|
12880
12904
|
imports(moduleObject: Module): ModuleImportDescriptor[];
|
|
12881
12905
|
};
|
|
12882
12906
|
|
|
12907
|
+
/** The **`WebAssembly.RuntimeError`** object is the error type that is thrown whenever WebAssembly specifies a trap. */
|
|
12883
12908
|
interface RuntimeError extends Error {
|
|
12884
12909
|
}
|
|
12885
12910
|
|
|
@@ -13130,6 +13155,7 @@ interface Console {
|
|
|
13130
13155
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
|
|
13131
13156
|
*/
|
|
13132
13157
|
timeLog(label?: string, ...data: any[]): void;
|
|
13158
|
+
/** The **`console.timeStamp()`** static method adds a single marker to the browser's Performance tool (Firefox bug 1387528, Chrome). This lets you correlate a point in your code with the other events recorded in the timeline, such as layout and paint events. */
|
|
13133
13159
|
timeStamp(label?: string): void;
|
|
13134
13160
|
/**
|
|
13135
13161
|
* The **`console.trace()`** static method outputs a stack trace to the console.
|