@types/audioworklet 0.0.30 → 0.0.31
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 +38 -7
- 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.31 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.31.
|
package/index.d.ts
CHANGED
|
@@ -77,9 +77,18 @@ interface QueuingStrategyInit {
|
|
|
77
77
|
highWaterMark: number;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
interface
|
|
80
|
+
interface ReadableStreamGetReaderOptions {
|
|
81
|
+
/**
|
|
82
|
+
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
83
|
+
*
|
|
84
|
+
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
|
|
85
|
+
*/
|
|
86
|
+
mode?: ReadableStreamReaderMode;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
interface ReadableStreamReadDoneResult<T> {
|
|
81
90
|
done: true;
|
|
82
|
-
value?:
|
|
91
|
+
value?: T;
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
interface ReadableStreamReadValueResult<T> {
|
|
@@ -147,6 +156,21 @@ interface Transformer<I = any, O = any> {
|
|
|
147
156
|
writableType?: undefined;
|
|
148
157
|
}
|
|
149
158
|
|
|
159
|
+
interface UnderlyingByteSource {
|
|
160
|
+
autoAllocateChunkSize?: number;
|
|
161
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
162
|
+
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
|
|
163
|
+
start?: (controller: ReadableByteStreamController) => any;
|
|
164
|
+
type: "bytes";
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface UnderlyingDefaultSource<R = any> {
|
|
168
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
169
|
+
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
|
|
170
|
+
start?: (controller: ReadableStreamDefaultController<R>) => any;
|
|
171
|
+
type?: undefined;
|
|
172
|
+
}
|
|
173
|
+
|
|
150
174
|
interface UnderlyingSink<W = any> {
|
|
151
175
|
abort?: UnderlyingSinkAbortCallback;
|
|
152
176
|
close?: UnderlyingSinkCloseCallback;
|
|
@@ -156,10 +180,11 @@ interface UnderlyingSink<W = any> {
|
|
|
156
180
|
}
|
|
157
181
|
|
|
158
182
|
interface UnderlyingSource<R = any> {
|
|
183
|
+
autoAllocateChunkSize?: number;
|
|
159
184
|
cancel?: UnderlyingSourceCancelCallback;
|
|
160
185
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
161
186
|
start?: UnderlyingSourceStartCallback<R>;
|
|
162
|
-
type?:
|
|
187
|
+
type?: ReadableStreamType;
|
|
163
188
|
}
|
|
164
189
|
|
|
165
190
|
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
@@ -531,7 +556,9 @@ declare var ReadableByteStreamController: {
|
|
|
531
556
|
interface ReadableStream<R = any> {
|
|
532
557
|
readonly locked: boolean;
|
|
533
558
|
cancel(reason?: any): Promise<void>;
|
|
559
|
+
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
|
|
534
560
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
561
|
+
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
|
|
535
562
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
536
563
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
537
564
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
@@ -539,11 +566,13 @@ interface ReadableStream<R = any> {
|
|
|
539
566
|
|
|
540
567
|
declare var ReadableStream: {
|
|
541
568
|
prototype: ReadableStream;
|
|
569
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
570
|
+
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
542
571
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
543
572
|
};
|
|
544
573
|
|
|
545
574
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
546
|
-
read(view:
|
|
575
|
+
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
547
576
|
releaseLock(): void;
|
|
548
577
|
}
|
|
549
578
|
|
|
@@ -992,7 +1021,9 @@ type DOMHighResTimeStamp = number;
|
|
|
992
1021
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
993
1022
|
type MessageEventSource = MessagePort;
|
|
994
1023
|
type PerformanceEntryList = PerformanceEntry[];
|
|
995
|
-
type ReadableStreamController<T> = ReadableStreamDefaultController<T
|
|
996
|
-
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult
|
|
997
|
-
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T
|
|
1024
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
1025
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
1026
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
998
1027
|
type Transferable = ArrayBuffer | MessagePort;
|
|
1028
|
+
type ReadableStreamReaderMode = "byob";
|
|
1029
|
+
type ReadableStreamType = "bytes";
|