Type alias ModelField<T, UsedMethod, Auth, FT>

ModelField<T, UsedMethod, Auth, FT>: Omit<{
    [___auth]?: Auth;
    [brandSymbol]: typeof brandName;
    [internal](): ModelField<T, UsedMethod, Auth, FT>;
    array(): ModelField<ArrayField<T>, "array" | "validate" | Exclude<UsedMethod, "required">, Auth, FT>;
    authorization<AuthRuleType>(callback): ModelField<T, UsedMethod | "authorization", AuthRuleType, FT>;
    default(value?): ModelField<T, "default" | UsedMethod, Auth, FT>;
    required(): ModelField<Exclude<T, null>, UsedMethod | "required", Auth, FT>;
    validate(callback): ModelField<T, "default" | UsedMethod | "array" | "validate", Auth, FT>;
}, UsedMethod>

Public API for the chainable builder methods exposed by Model Field. The type is narrowing e.g., after calling .array() it will be omitted from intellisense suggestions

Type Parameters

Type declaration