InstrumentUIOption
InstrumentUIOption<
TLanguage
,TValue
>:TLanguage
extendsLanguage
?TValue
:TLanguage
extends infer L[] ?{ [K in L]: TValue }
:never
Utility type used to for UI fields in an instrument. If L
is an array,
then resolves to Record<K, V>
, otherwise resolves to V
(i.e., in the
case of a unilingual instrument).
Type Parameters
• TLanguage extends InstrumentLanguage
the language(s) of the instrument
• TValue
the value to be displayed in the UI