ScalarField
ScalarField<
TLanguage
,TValue
>: [TValue
] extends [object
] ? [TValue
] extends [Date
] ?DateField
<TLanguage
> : [TValue
] extends [Set
<string
>] ?SetField
<TLanguage
,TValue
> :never
: [TValue
] extends [string
] ?StringField
<TLanguage
,TValue
> : [TValue
] extends [number
] ?NumberField
<TLanguage
,TValue
> : [TValue
] extends [boolean
] ?BooleanField
<TLanguage
> :AnyScalarField
<TLanguage
>
Conditional type representing a static field corresponding for a ScalarFieldValue
Type Parameters
• TLanguage extends InstrumentLanguage
= InstrumentLanguage
the language(s) of the instrument
• TValue extends RequiredFieldValue
<ScalarFieldValue
> = RequiredFieldValue
<ScalarFieldValue
>
the value corresponding to this field in Data
, excluding undefined