Aller au contenu

InstrumentUIOption

Ce contenu n’est pas encore disponible dans votre langue.

InstrumentUIOption<TLanguage, TValue>: TLanguage extends Language ? 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

Defined in

packages/runtime-core/src/types/instrument.base.d.ts:30