mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-26 19:43:12 +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,6 +26,7 @@ type VoiceOptions<T> =
|
|||
T extends MonoSynth ? MonoSynthOptions :
|
||||
T extends AMSynth ? AMSynthOptions :
|
||||
T extends Synth ? SynthOptions :
|
||||
T extends Monophonic<infer U> ? U :
|
||||
never;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue