diff --git a/Tone/core/context/BaseContext.ts b/Tone/core/context/BaseContext.ts index 7587bb7c..d5625d0e 100644 --- a/Tone/core/context/BaseContext.ts +++ b/Tone/core/context/BaseContext.ts @@ -104,7 +104,7 @@ export abstract class BaseContext abstract get rawContext(): AnyAudioContext; - abstract async addAudioWorkletModule( + abstract addAudioWorkletModule( _url: string, _name: string ): Promise; diff --git a/Tone/core/context/Context.test.ts b/Tone/core/context/Context.test.ts index 4481cba7..83e1dffd 100644 --- a/Tone/core/context/Context.test.ts +++ b/Tone/core/context/Context.test.ts @@ -116,7 +116,7 @@ describe("Context", () => { } }); await context.resume(); - await new Promise((done) => setTimeout(() => done(), 10)); + await new Promise((done) => setTimeout(() => done(), 10)); expect(triggerChange).to.equal(true); context.dispose(); return ac.close(); diff --git a/Tone/core/context/ToneAudioNode.ts b/Tone/core/context/ToneAudioNode.ts index f5fa069b..c34c1943 100644 --- a/Tone/core/context/ToneAudioNode.ts +++ b/Tone/core/context/ToneAudioNode.ts @@ -27,7 +27,7 @@ export abstract class ToneAudioNode { release: 0.5 } }), - }) as DuoSynthOptions; + }) as unknown as DuoSynthOptions; } /** * Trigger the attack portion of the note