@types/audioworklet 0.0.25 → 0.0.28
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 +11 -5
- package/package.json +1 -1
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.28 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.28.
|
package/index.d.ts
CHANGED
|
@@ -77,12 +77,12 @@ interface QueuingStrategyInit {
|
|
|
77
77
|
highWaterMark: number;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
interface
|
|
80
|
+
interface ReadableStreamReadDoneResult {
|
|
81
81
|
done: true;
|
|
82
82
|
value?: undefined;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
interface
|
|
85
|
+
interface ReadableStreamReadValueResult<T> {
|
|
86
86
|
done: false;
|
|
87
87
|
value: T;
|
|
88
88
|
}
|
|
@@ -185,6 +185,7 @@ interface AbortSignal extends EventTarget {
|
|
|
185
185
|
readonly aborted: boolean;
|
|
186
186
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
187
187
|
readonly reason: any;
|
|
188
|
+
throwIfAborted(): void;
|
|
188
189
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
189
190
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
190
191
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -218,6 +219,10 @@ declare var AudioWorkletProcessor: {
|
|
|
218
219
|
new(): AudioWorkletProcessor;
|
|
219
220
|
};
|
|
220
221
|
|
|
222
|
+
interface AudioWorkletProcessorImpl extends AudioWorkletProcessor {
|
|
223
|
+
process(inputs: Float32Array[][], outputs: Float32Array[][], parameters: Record<string, Float32Array>): boolean;
|
|
224
|
+
}
|
|
225
|
+
|
|
221
226
|
/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
222
227
|
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
223
228
|
readonly highWaterMark: number;
|
|
@@ -537,7 +542,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
537
542
|
};
|
|
538
543
|
|
|
539
544
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
540
|
-
read(): Promise<
|
|
545
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
541
546
|
releaseLock(): void;
|
|
542
547
|
}
|
|
543
548
|
|
|
@@ -715,6 +720,7 @@ declare var WritableStream: {
|
|
|
715
720
|
|
|
716
721
|
/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
717
722
|
interface WritableStreamDefaultController {
|
|
723
|
+
readonly signal: AbortSignal;
|
|
718
724
|
error(e?: any): void;
|
|
719
725
|
}
|
|
720
726
|
|
|
@@ -892,7 +898,7 @@ declare namespace WebAssembly {
|
|
|
892
898
|
}
|
|
893
899
|
|
|
894
900
|
interface AudioWorkletProcessorConstructor {
|
|
895
|
-
(options: any):
|
|
901
|
+
new (options: any): AudioWorkletProcessorImpl;
|
|
896
902
|
}
|
|
897
903
|
|
|
898
904
|
interface PerformanceObserverCallback {
|
|
@@ -953,6 +959,6 @@ type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
|
953
959
|
type MessageEventSource = MessagePort;
|
|
954
960
|
type PerformanceEntryList = PerformanceEntry[];
|
|
955
961
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
956
|
-
type
|
|
962
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
957
963
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
958
964
|
type Transferable = ArrayBuffer | MessagePort;
|