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>,
        injector: Injector,
    ) => string | LocalizedString[] | void | Promise<string | LocalizedString[] | void>;
}