InstrumentUIOption
InstrumentUIOption<
TLanguage
,TValue
>:TLanguage
extendsLanguage
?TValue
:TLanguage
extends infer L[] ?{ [K in L]: TValue }
:never
Defined in: packages/runtime-core/lib/types/instrument.base.d.ts:26
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