diff --git a/Tone/core/Tone.ts b/Tone/core/Tone.ts index 3fa7660e..7414ea04 100644 --- a/Tone/core/Tone.ts +++ b/Tone/core/Tone.ts @@ -16,7 +16,8 @@ import { log } from "./util/Debug"; export interface BaseToneOptions { } /** - * @class Tone is the base class of all other classes. + * Tone is the base class of all other classes. + * * @category Core * @constructor */ 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),