Function: oneOf()
Imported from
@react-logic/utilsoneOf<
T,N>(values,message?,name?):ValidatorEntry<T> &object
Defined in: utils/src/lib/forms-validators.ts:199
Value must be one of the provided literals. Useful for select / radio fields where the schema doesn't already constrain the type.
Type Parameters
T
T
N
N extends string = "oneOf"
Parameters
Returns
ValidatorEntry<T> & object