mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 03:23:11 +00:00
allow PolySynth voice constructors to extend Monophonic
This commit is contained in:
parent
26392c29a7
commit
f4474ffd63
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ type VoiceOptions<T> =
|
|||
T extends MonoSynth ? MonoSynthOptions :
|
||||
T extends AMSynth ? AMSynthOptions :
|
||||
T extends Synth ? SynthOptions :
|
||||
never;
|
||||
T extends Monophonic<infer U> ? U :
|
||||
never;
|
||||
|
||||
/**
|
||||
* The settable synth options. excludes monophonic options.
|
||||
|
|
Loading…
Reference in a new issue