@types/audioworklet 0.0.24 → 0.0.27
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.27 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.27.
|
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
|
}
|
|
@@ -184,6 +184,8 @@ interface AbortSignal extends EventTarget {
|
|
|
184
184
|
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
185
185
|
readonly aborted: boolean;
|
|
186
186
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
187
|
+
readonly reason: any;
|
|
188
|
+
throwIfAborted(): void;
|
|
187
189
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
188
190
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
189
191
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -217,6 +219,10 @@ declare var AudioWorkletProcessor: {
|
|
|
217
219
|
new(): AudioWorkletProcessor;
|
|
218
220
|
};
|
|
219
221
|
|
|
222
|
+
interface AudioWorkletProcessorImpl extends AudioWorkletProcessor {
|
|
223
|
+
process(inputs: Float32Array[][], outputs: Float32Array[][], parameters: Record<string, Float32Array>): boolean;
|
|
224
|
+
}
|
|
225
|
+
|
|
220
226
|
/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
|
|
221
227
|
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
|
|
222
228
|
readonly highWaterMark: number;
|
|
@@ -536,7 +542,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
536
542
|
};
|
|
537
543
|
|
|
538
544
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
539
|
-
read(): Promise<
|
|
545
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
540
546
|
releaseLock(): void;
|
|
541
547
|
}
|
|
542
548
|
|
|
@@ -891,7 +897,7 @@ declare namespace WebAssembly {
|
|
|
891
897
|
}
|
|
892
898
|
|
|
893
899
|
interface AudioWorkletProcessorConstructor {
|
|
894
|
-
(options: any):
|
|
900
|
+
new (options: any): AudioWorkletProcessorImpl;
|
|
895
901
|
}
|
|
896
902
|
|
|
897
903
|
interface PerformanceObserverCallback {
|
|
@@ -952,6 +958,6 @@ type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
|
952
958
|
type MessageEventSource = MessagePort;
|
|
953
959
|
type PerformanceEntryList = PerformanceEntry[];
|
|
954
960
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
955
|
-
type
|
|
961
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
956
962
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
957
963
|
type Transferable = ArrayBuffer | MessagePort;
|