@types/audioworklet 0.0.17 → 0.0.21
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 +2 -1
- package/index.d.ts +8 -6
- package/{index.iterable.d.ts → iterable.d.ts} +0 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ To use `@types/audioworklet` you need to do two things:
|
|
|
18
18
|
|
|
19
19
|
That's all.
|
|
20
20
|
|
|
21
|
+
If you'd like to ensure that the DOM types are never accidentally included, you can use [@orta/types-noop](https://www.npmjs.com/package/@orta/type-noops) in TypeScript 4.5+.
|
|
21
22
|
|
|
22
23
|
## SemVer
|
|
23
24
|
|
|
@@ -27,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
27
28
|
|
|
28
29
|
## Deploy Metadata
|
|
29
30
|
|
|
30
|
-
You can read what changed in version 0.0.
|
|
31
|
+
You can read what changed in version 0.0.21 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Faudioworklet%400.0.21.
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path="./
|
|
1
|
+
/// <reference path="./iterable.d.ts" />
|
|
2
2
|
|
|
3
3
|
/////////////////////////////
|
|
4
4
|
/// AudioWorklet APIs
|
|
@@ -303,7 +303,6 @@ interface ReadableStream<R = any> {
|
|
|
303
303
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
304
304
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
305
305
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
306
|
-
forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
|
|
307
306
|
}
|
|
308
307
|
|
|
309
308
|
declare var ReadableStream: {
|
|
@@ -438,7 +437,8 @@ declare namespace WebAssembly {
|
|
|
438
437
|
|
|
439
438
|
var CompileError: {
|
|
440
439
|
prototype: CompileError;
|
|
441
|
-
new(): CompileError;
|
|
440
|
+
new(message?: string): CompileError;
|
|
441
|
+
(message?: string): CompileError;
|
|
442
442
|
};
|
|
443
443
|
|
|
444
444
|
interface Global {
|
|
@@ -465,7 +465,8 @@ declare namespace WebAssembly {
|
|
|
465
465
|
|
|
466
466
|
var LinkError: {
|
|
467
467
|
prototype: LinkError;
|
|
468
|
-
new(): LinkError;
|
|
468
|
+
new(message?: string): LinkError;
|
|
469
|
+
(message?: string): LinkError;
|
|
469
470
|
};
|
|
470
471
|
|
|
471
472
|
interface Memory {
|
|
@@ -494,7 +495,8 @@ declare namespace WebAssembly {
|
|
|
494
495
|
|
|
495
496
|
var RuntimeError: {
|
|
496
497
|
prototype: RuntimeError;
|
|
497
|
-
new(): RuntimeError;
|
|
498
|
+
new(message?: string): RuntimeError;
|
|
499
|
+
(message?: string): RuntimeError;
|
|
498
500
|
};
|
|
499
501
|
|
|
500
502
|
interface Table {
|
|
@@ -561,7 +563,7 @@ interface AudioWorkletProcessorConstructor {
|
|
|
561
563
|
}
|
|
562
564
|
|
|
563
565
|
interface QueuingStrategySize<T = any> {
|
|
564
|
-
(chunk
|
|
566
|
+
(chunk: T): number;
|
|
565
567
|
}
|
|
566
568
|
|
|
567
569
|
interface TransformerFlushCallback<O> {
|
|
@@ -6,10 +6,3 @@ interface MessageEvent<T = any> {
|
|
|
6
6
|
/** @deprecated */
|
|
7
7
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
interface ReadableStream<R = any> {
|
|
11
|
-
[Symbol.iterator](): IterableIterator<any>;
|
|
12
|
-
entries(): IterableIterator<[number, any]>;
|
|
13
|
-
keys(): IterableIterator<number>;
|
|
14
|
-
values(): IterableIterator<any>;
|
|
15
|
-
}
|