allow PolySynth voice constructors to extend Monophonic

This commit is contained in:
SkyezerFox 2021-08-13 12:11:57 +01:00
parent 26392c29a7
commit f4474ffd63
No known key found for this signature in database
GPG key ID: E4D3025F4E5AD0C2

View file

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