@types/audioworklet 0.0.72 → 0.0.74
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 +116 -46
- package/package.json +6 -1
- package/ts5.5/index.d.ts +105 -35
- package/ts5.6/index.d.ts +1514 -0
- package/ts5.6/iterable.d.ts +22 -0
package/ts5.5/index.d.ts
CHANGED
|
@@ -181,7 +181,7 @@ interface UnderlyingSource<R = any> {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* The **`AbortController`** interface represents a controller object that allows you to abort one or more Web requests as and when desired.
|
|
185
185
|
*
|
|
186
186
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
|
|
187
187
|
*/
|
|
@@ -210,7 +210,7 @@ interface AbortSignalEventMap {
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
|
-
*
|
|
213
|
+
* The **`AbortSignal`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.
|
|
214
214
|
*
|
|
215
215
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
|
|
216
216
|
*/
|
|
@@ -242,7 +242,11 @@ declare var AbortSignal: {
|
|
|
242
242
|
any(signals: AbortSignal[]): AbortSignal;
|
|
243
243
|
};
|
|
244
244
|
|
|
245
|
-
/**
|
|
245
|
+
/**
|
|
246
|
+
* The **`AudioWorkletGlobalScope`** interface of the Web Audio API represents a global execution context for user-supplied code, which defines custom AudioWorkletProcessor-derived classes.
|
|
247
|
+
*
|
|
248
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope)
|
|
249
|
+
*/
|
|
246
250
|
interface AudioWorkletGlobalScope extends WorkletGlobalScope {
|
|
247
251
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/currentFrame) */
|
|
248
252
|
readonly currentFrame: number;
|
|
@@ -259,7 +263,11 @@ declare var AudioWorkletGlobalScope: {
|
|
|
259
263
|
new(): AudioWorkletGlobalScope;
|
|
260
264
|
};
|
|
261
265
|
|
|
262
|
-
/**
|
|
266
|
+
/**
|
|
267
|
+
* The **`AudioWorkletProcessor`** interface of the Web Audio API represents an audio processing code behind a custom AudioWorkletNode.
|
|
268
|
+
*
|
|
269
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletProcessor)
|
|
270
|
+
*/
|
|
263
271
|
interface AudioWorkletProcessor {
|
|
264
272
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletProcessor/port) */
|
|
265
273
|
readonly port: MessagePort;
|
|
@@ -275,7 +283,7 @@ interface AudioWorkletProcessorImpl extends AudioWorkletProcessor {
|
|
|
275
283
|
}
|
|
276
284
|
|
|
277
285
|
/**
|
|
278
|
-
*
|
|
286
|
+
* The **`ByteLengthQueuingStrategy`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.
|
|
279
287
|
*
|
|
280
288
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
|
|
281
289
|
*/
|
|
@@ -291,7 +299,11 @@ declare var ByteLengthQueuingStrategy: {
|
|
|
291
299
|
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
292
300
|
};
|
|
293
301
|
|
|
294
|
-
/**
|
|
302
|
+
/**
|
|
303
|
+
* The **`CompressionStream`** interface of the Compression Streams API is an API for compressing a stream of data.
|
|
304
|
+
*
|
|
305
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream)
|
|
306
|
+
*/
|
|
295
307
|
interface CompressionStream extends GenericTransformStream {
|
|
296
308
|
readonly readable: ReadableStream<Uint8Array>;
|
|
297
309
|
readonly writable: WritableStream<BufferSource>;
|
|
@@ -303,7 +315,7 @@ declare var CompressionStream: {
|
|
|
303
315
|
};
|
|
304
316
|
|
|
305
317
|
/**
|
|
306
|
-
*
|
|
318
|
+
* The **`CountQueuingStrategy`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.
|
|
307
319
|
*
|
|
308
320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
|
|
309
321
|
*/
|
|
@@ -319,7 +331,11 @@ declare var CountQueuingStrategy: {
|
|
|
319
331
|
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
320
332
|
};
|
|
321
333
|
|
|
322
|
-
/**
|
|
334
|
+
/**
|
|
335
|
+
* The **`CustomEvent`** interface represents events initialized by an application for any purpose.
|
|
336
|
+
*
|
|
337
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
338
|
+
*/
|
|
323
339
|
interface CustomEvent<T = any> extends Event {
|
|
324
340
|
/**
|
|
325
341
|
* Returns any custom data event was created with. Typically used for synthetic events.
|
|
@@ -341,7 +357,7 @@ declare var CustomEvent: {
|
|
|
341
357
|
};
|
|
342
358
|
|
|
343
359
|
/**
|
|
344
|
-
*
|
|
360
|
+
* The **`DOMException`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API.
|
|
345
361
|
*
|
|
346
362
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
|
|
347
363
|
*/
|
|
@@ -413,7 +429,11 @@ declare var DOMException: {
|
|
|
413
429
|
readonly DATA_CLONE_ERR: 25;
|
|
414
430
|
};
|
|
415
431
|
|
|
416
|
-
/**
|
|
432
|
+
/**
|
|
433
|
+
* The **`DecompressionStream`** interface of the Compression Streams API is an API for decompressing a stream of data.
|
|
434
|
+
*
|
|
435
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream)
|
|
436
|
+
*/
|
|
417
437
|
interface DecompressionStream extends GenericTransformStream {
|
|
418
438
|
readonly readable: ReadableStream<Uint8Array>;
|
|
419
439
|
readonly writable: WritableStream<BufferSource>;
|
|
@@ -425,7 +445,7 @@ declare var DecompressionStream: {
|
|
|
425
445
|
};
|
|
426
446
|
|
|
427
447
|
/**
|
|
428
|
-
*
|
|
448
|
+
* The **`ErrorEvent`** interface represents events providing information related to errors in scripts or in files.
|
|
429
449
|
*
|
|
430
450
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
|
|
431
451
|
*/
|
|
@@ -448,7 +468,7 @@ declare var ErrorEvent: {
|
|
|
448
468
|
};
|
|
449
469
|
|
|
450
470
|
/**
|
|
451
|
-
*
|
|
471
|
+
* The **`Event`** interface represents an event which takes place on an `EventTarget`.
|
|
452
472
|
*
|
|
453
473
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
|
|
454
474
|
*/
|
|
@@ -585,7 +605,7 @@ interface EventListenerObject {
|
|
|
585
605
|
}
|
|
586
606
|
|
|
587
607
|
/**
|
|
588
|
-
* EventTarget is
|
|
608
|
+
* The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them.
|
|
589
609
|
*
|
|
590
610
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
|
|
591
611
|
*/
|
|
@@ -635,7 +655,7 @@ interface GenericTransformStream {
|
|
|
635
655
|
}
|
|
636
656
|
|
|
637
657
|
/**
|
|
638
|
-
*
|
|
658
|
+
* The **`MessageEvent`** interface represents a message received by a target object.
|
|
639
659
|
*
|
|
640
660
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
|
|
641
661
|
*/
|
|
@@ -701,7 +721,7 @@ interface MessagePortEventMap extends MessageEventTargetEventMap {
|
|
|
701
721
|
}
|
|
702
722
|
|
|
703
723
|
/**
|
|
704
|
-
*
|
|
724
|
+
* The **`MessagePort`** interface of the Channel Messaging API represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
|
|
705
725
|
*
|
|
706
726
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
|
|
707
727
|
*/
|
|
@@ -738,7 +758,11 @@ declare var MessagePort: {
|
|
|
738
758
|
new(): MessagePort;
|
|
739
759
|
};
|
|
740
760
|
|
|
741
|
-
/**
|
|
761
|
+
/**
|
|
762
|
+
* The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
|
|
763
|
+
*
|
|
764
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
|
|
765
|
+
*/
|
|
742
766
|
interface PromiseRejectionEvent extends Event {
|
|
743
767
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
|
|
744
768
|
readonly promise: Promise<any>;
|
|
@@ -751,7 +775,11 @@ declare var PromiseRejectionEvent: {
|
|
|
751
775
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
752
776
|
};
|
|
753
777
|
|
|
754
|
-
/**
|
|
778
|
+
/**
|
|
779
|
+
* The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream.
|
|
780
|
+
*
|
|
781
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
|
|
782
|
+
*/
|
|
755
783
|
interface ReadableByteStreamController {
|
|
756
784
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
|
|
757
785
|
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
@@ -771,7 +799,7 @@ declare var ReadableByteStreamController: {
|
|
|
771
799
|
};
|
|
772
800
|
|
|
773
801
|
/**
|
|
774
|
-
*
|
|
802
|
+
* The `ReadableStream` interface of the Streams API represents a readable stream of byte data.
|
|
775
803
|
*
|
|
776
804
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
|
|
777
805
|
*/
|
|
@@ -799,7 +827,11 @@ declare var ReadableStream: {
|
|
|
799
827
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
800
828
|
};
|
|
801
829
|
|
|
802
|
-
/**
|
|
830
|
+
/**
|
|
831
|
+
* The `ReadableStreamBYOBReader` interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.
|
|
832
|
+
*
|
|
833
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
|
|
834
|
+
*/
|
|
803
835
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
804
836
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
|
|
805
837
|
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
@@ -812,7 +844,11 @@ declare var ReadableStreamBYOBReader: {
|
|
|
812
844
|
new(stream: ReadableStream<Uint8Array>): ReadableStreamBYOBReader;
|
|
813
845
|
};
|
|
814
846
|
|
|
815
|
-
/**
|
|
847
|
+
/**
|
|
848
|
+
* The **`ReadableStreamBYOBRequest`** interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
|
|
849
|
+
*
|
|
850
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
|
|
851
|
+
*/
|
|
816
852
|
interface ReadableStreamBYOBRequest {
|
|
817
853
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
|
|
818
854
|
readonly view: ArrayBufferView | null;
|
|
@@ -827,7 +863,11 @@ declare var ReadableStreamBYOBRequest: {
|
|
|
827
863
|
new(): ReadableStreamBYOBRequest;
|
|
828
864
|
};
|
|
829
865
|
|
|
830
|
-
/**
|
|
866
|
+
/**
|
|
867
|
+
* The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
|
|
868
|
+
*
|
|
869
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
|
|
870
|
+
*/
|
|
831
871
|
interface ReadableStreamDefaultController<R = any> {
|
|
832
872
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
|
|
833
873
|
readonly desiredSize: number | null;
|
|
@@ -844,7 +884,11 @@ declare var ReadableStreamDefaultController: {
|
|
|
844
884
|
new(): ReadableStreamDefaultController;
|
|
845
885
|
};
|
|
846
886
|
|
|
847
|
-
/**
|
|
887
|
+
/**
|
|
888
|
+
* The **`ReadableStreamDefaultReader`** interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).
|
|
889
|
+
*
|
|
890
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader)
|
|
891
|
+
*/
|
|
848
892
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
849
893
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
|
|
850
894
|
read(): Promise<ReadableStreamReadResult<R>>;
|
|
@@ -865,7 +909,7 @@ interface ReadableStreamGenericReader {
|
|
|
865
909
|
}
|
|
866
910
|
|
|
867
911
|
/**
|
|
868
|
-
*
|
|
912
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.
|
|
869
913
|
*
|
|
870
914
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
871
915
|
*/
|
|
@@ -914,7 +958,11 @@ interface TextDecoderCommon {
|
|
|
914
958
|
readonly ignoreBOM: boolean;
|
|
915
959
|
}
|
|
916
960
|
|
|
917
|
-
/**
|
|
961
|
+
/**
|
|
962
|
+
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
|
|
963
|
+
*
|
|
964
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
965
|
+
*/
|
|
918
966
|
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
|
|
919
967
|
readonly readable: ReadableStream<string>;
|
|
920
968
|
readonly writable: WritableStream<BufferSource>;
|
|
@@ -926,7 +974,7 @@ declare var TextDecoderStream: {
|
|
|
926
974
|
};
|
|
927
975
|
|
|
928
976
|
/**
|
|
929
|
-
* TextEncoder takes a stream of code points as input and emits a stream of
|
|
977
|
+
* The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
|
|
930
978
|
*
|
|
931
979
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
932
980
|
*/
|
|
@@ -959,7 +1007,11 @@ interface TextEncoderCommon {
|
|
|
959
1007
|
readonly encoding: string;
|
|
960
1008
|
}
|
|
961
1009
|
|
|
962
|
-
/**
|
|
1010
|
+
/**
|
|
1011
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
|
|
1012
|
+
*
|
|
1013
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
1014
|
+
*/
|
|
963
1015
|
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
|
|
964
1016
|
readonly readable: ReadableStream<Uint8Array>;
|
|
965
1017
|
readonly writable: WritableStream<string>;
|
|
@@ -970,7 +1022,11 @@ declare var TextEncoderStream: {
|
|
|
970
1022
|
new(): TextEncoderStream;
|
|
971
1023
|
};
|
|
972
1024
|
|
|
973
|
-
/**
|
|
1025
|
+
/**
|
|
1026
|
+
* The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain _transform stream_ concept.
|
|
1027
|
+
*
|
|
1028
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
|
|
1029
|
+
*/
|
|
974
1030
|
interface TransformStream<I = any, O = any> {
|
|
975
1031
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
|
|
976
1032
|
readonly readable: ReadableStream<O>;
|
|
@@ -983,7 +1039,11 @@ declare var TransformStream: {
|
|
|
983
1039
|
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
|
|
984
1040
|
};
|
|
985
1041
|
|
|
986
|
-
/**
|
|
1042
|
+
/**
|
|
1043
|
+
* The **`TransformStreamDefaultController`** interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.
|
|
1044
|
+
*
|
|
1045
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController)
|
|
1046
|
+
*/
|
|
987
1047
|
interface TransformStreamDefaultController<O = any> {
|
|
988
1048
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
|
|
989
1049
|
readonly desiredSize: number | null;
|
|
@@ -1001,7 +1061,7 @@ declare var TransformStreamDefaultController: {
|
|
|
1001
1061
|
};
|
|
1002
1062
|
|
|
1003
1063
|
/**
|
|
1004
|
-
* The URL
|
|
1064
|
+
* The **`URL`** interface is used to parse, construct, normalize, and encode URL.
|
|
1005
1065
|
*
|
|
1006
1066
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
|
|
1007
1067
|
*/
|
|
@@ -1044,7 +1104,11 @@ declare var URL: {
|
|
|
1044
1104
|
parse(url: string | URL, base?: string | URL): URL | null;
|
|
1045
1105
|
};
|
|
1046
1106
|
|
|
1047
|
-
/**
|
|
1107
|
+
/**
|
|
1108
|
+
* The **`URLSearchParams`** interface defines utility methods to work with the query string of a URL.
|
|
1109
|
+
*
|
|
1110
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
|
|
1111
|
+
*/
|
|
1048
1112
|
interface URLSearchParams {
|
|
1049
1113
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
|
|
1050
1114
|
readonly size: number;
|
|
@@ -1097,6 +1161,7 @@ declare var URLSearchParams: {
|
|
|
1097
1161
|
};
|
|
1098
1162
|
|
|
1099
1163
|
/**
|
|
1164
|
+
* The **`WorkletGlobalScope`** interface is an abstract class that specific worklet scope classes inherit from.
|
|
1100
1165
|
* Available only in secure contexts.
|
|
1101
1166
|
*
|
|
1102
1167
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkletGlobalScope)
|
|
@@ -1110,7 +1175,7 @@ declare var WorkletGlobalScope: {
|
|
|
1110
1175
|
};
|
|
1111
1176
|
|
|
1112
1177
|
/**
|
|
1113
|
-
*
|
|
1178
|
+
* The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
|
|
1114
1179
|
*
|
|
1115
1180
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
|
|
1116
1181
|
*/
|
|
@@ -1131,7 +1196,7 @@ declare var WritableStream: {
|
|
|
1131
1196
|
};
|
|
1132
1197
|
|
|
1133
1198
|
/**
|
|
1134
|
-
*
|
|
1199
|
+
* The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
|
|
1135
1200
|
*
|
|
1136
1201
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
|
|
1137
1202
|
*/
|
|
@@ -1148,7 +1213,7 @@ declare var WritableStreamDefaultController: {
|
|
|
1148
1213
|
};
|
|
1149
1214
|
|
|
1150
1215
|
/**
|
|
1151
|
-
*
|
|
1216
|
+
* The **`WritableStreamDefaultWriter`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the `WritableStream` ensuring that no other streams can write to the underlying sink.
|
|
1152
1217
|
*
|
|
1153
1218
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
|
|
1154
1219
|
*/
|
|
@@ -1329,7 +1394,12 @@ declare namespace WebAssembly {
|
|
|
1329
1394
|
function validate(bytes: BufferSource): boolean;
|
|
1330
1395
|
}
|
|
1331
1396
|
|
|
1332
|
-
/**
|
|
1397
|
+
/** The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox). */
|
|
1398
|
+
/**
|
|
1399
|
+
* The **`console`** object provides access to the debugging console (e.g., the Web console in Firefox).
|
|
1400
|
+
*
|
|
1401
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console)
|
|
1402
|
+
*/
|
|
1333
1403
|
interface Console {
|
|
1334
1404
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
|
|
1335
1405
|
assert(condition?: boolean, ...data: any[]): void;
|
|
@@ -1430,7 +1500,7 @@ declare var currentTime: number;
|
|
|
1430
1500
|
declare var sampleRate: number;
|
|
1431
1501
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletGlobalScope/registerProcessor) */
|
|
1432
1502
|
declare function registerProcessor(name: string, processorCtor: AudioWorkletProcessorConstructor): void;
|
|
1433
|
-
type AllowSharedBufferSource =
|
|
1503
|
+
type AllowSharedBufferSource = ArrayBufferLike | ArrayBufferView;
|
|
1434
1504
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
1435
1505
|
type DOMHighResTimeStamp = number;
|
|
1436
1506
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|