Skip to content

API reference / @localizer/format-lookup / LookupTable

Type Alias: LookupTable<T>
preview

LookupTable<T> = { [K in T extends string | number ? T : never]?: Localizable | ValueFormatter<K> } & { [K in typeof UndefinedValue | typeof NoValue | typeof NullValue]?: Localizable } & { [K in typeof DefaultValue]?: Localizable | ValueFormatter<T> }

Defined in: lookupFormatter.ts:67

Defines a lookup table for mapping values to localizable content or formatters.

Type Parameters

Type ParameterDescription
TThe type of values the lookup table supports.

See