From c135ebb57dfba0ebde9aeec64639b8183c19b525 Mon Sep 17 00:00:00 2001 From: Vibert Thio Date: Thu, 25 Feb 2021 23:02:05 -0500 Subject: [PATCH] Change type name to differentiate with the class --- Tone/fromContext.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tone/fromContext.ts b/Tone/fromContext.ts index a4a36a82..ce9dcdb4 100644 --- a/Tone/fromContext.ts +++ b/Tone/fromContext.ts @@ -18,7 +18,7 @@ type ClassesWithoutSingletons = Omit = {}; Object.keys(omitFromObject(Classes, ["Transport", "Destination", "Draw"])).map(key => { @@ -56,7 +56,7 @@ export function fromContext(context: Context): Tone { } }); - const toneFromContext: Tone = { + const toneFromContext: ToneObject = { ...(classesWithContext as ClassesWithoutSingletons), now: context.now.bind(context), immediate: context.immediate.bind(context),