Function: custom()
Imported from
@react-logic/utilscustom<
T,N>(name,fn,message?,htmlAttrs?):ValidatorEntry<T> &object
Defined in: utils/src/lib/forms-validators.ts:216
Build a custom-named validator entry. Useful when you want literal-name
inference without the inline-object pattern, or to attach htmlAttrs to
your own rules.
Type Parameters
T
T
N
N extends string
Parameters
Returns
ValidatorEntry<T> & object