Skip to main content

Type Alias: FieldValue<T>

FieldValue<T> = T extends "string" ? string : T extends "number" ? number : T extends "boolean" ? boolean : T extends "date" ? Date : T extends "set" ? Set<CoreValue> : T extends "map" ? Dictionary<string, CoreValue> : T extends "richtext" ? RichText : CoreValue

Defined in: cfds/base/schema.ts:60

A mapping between a schema type and its native variable type.

Type Parameters

Type Parameter
T extends ValueType