correcting typescript issues

This commit is contained in:
Yotam Mann 2021-10-13 13:32:29 -04:00
parent f4bc9f38d2
commit e055c0b47e
4 changed files with 4 additions and 4 deletions

View file

@ -104,7 +104,7 @@ export abstract class BaseContext
abstract get rawContext(): AnyAudioContext;
abstract async addAudioWorkletModule(
abstract addAudioWorkletModule(
_url: string,
_name: string
): Promise<void>;

View file

@ -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();

View file

@ -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,

View file

@ -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