DiscriminatedInstrument
DiscriminatedInstrument<
TKind
,TLanguage
,TData
>: [TKind
] extends ["FORM"
] ?TData
extendsData
?FormInstrument
<TData
,TLanguage
> :never
: [TKind
] extends ["INTERACTIVE"
] ?TData
extendsData
?InteractiveInstrument
<TData
,TLanguage
> :never
:never
Type Parameters
• TKind extends InstrumentKind
• TLanguage extends InstrumentLanguage
• TData