mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 12:28:47 +00:00
correcting typescript issues
This commit is contained in:
parent
f4bc9f38d2
commit
e055c0b47e
4 changed files with 4 additions and 4 deletions
|
@ -104,7 +104,7 @@ export abstract class BaseContext
|
|||
|
||||
abstract get rawContext(): AnyAudioContext;
|
||||
|
||||
abstract async addAudioWorkletModule(
|
||||
abstract addAudioWorkletModule(
|
||||
_url: string,
|
||||
_name: string
|
||||
): Promise<void>;
|
||||
|
|
|
@ -116,7 +116,7 @@ describe("Context", () => {
|
|||
}
|
||||
});
|
||||
await context.resume();
|
||||
await new Promise((done) => setTimeout(() => done(), 10));
|
||||
await new Promise<void>((done) => setTimeout(() => done(), 10));
|
||||
expect(triggerChange).to.equal(true);
|
||||
context.dispose();
|
||||
return ac.close();
|
||||
|
|
|
@ -27,7 +27,7 @@ export abstract class ToneAudioNode<Options extends ToneAudioNodeOptions = ToneA
|
|||
/**
|
||||
* The name of the class
|
||||
*/
|
||||
abstract readonly name: string = "ToneAudioNode";
|
||||
abstract readonly name: string;
|
||||
|
||||
/**
|
||||
* The input node or nodes. If the object is a source,
|
||||
|
|
|
@ -177,7 +177,7 @@ export class DuoSynth extends Monophonic<DuoSynthOptions> {
|
|||
release: 0.5
|
||||
}
|
||||
}),
|
||||
}) as DuoSynthOptions;
|
||||
}) as unknown as DuoSynthOptions;
|
||||
}
|
||||
/**
|
||||
* Trigger the attack portion of the note
|
||||
|
|
Loading…
Reference in a new issue