TypedCustomSingleFieldConfig

TypedCustomSingleFieldConfig

TypedCustomSingleFieldConfig

Configures a custom field on an entity in the CustomFields config object.

Signature

type TypedCustomSingleFieldConfig<T extends CustomFieldType, C extends CustomField> = BaseTypedCustomFieldConfig<T, C> & {
    list?: false;
    defaultValue?: DefaultValueType<T>;
    validate?: (value: DefaultValueType<T>) => string | LocalizedString[] | void;
}