From e055c0b47e876f42e48df05ed4832d9a220297e1 Mon Sep 17 00:00:00 2001 From: Yotam Mann Date: Wed, 13 Oct 2021 13:32:29 -0400 Subject: [PATCH] correcting typescript issues --- Tone/core/context/BaseContext.ts | 2 +- Tone/core/context/Context.test.ts | 2 +- Tone/core/context/ToneAudioNode.ts | 2 +- Tone/instrument/DuoSynth.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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