vtils

Home > validator > yup > number

yup.number() function

Signature:

export declare function number<T extends number = number>(payload?: (schema: NumberSchema<T>) => NumberSchema<T>): NumberSchema<T>;

Parameters

Parameter Type Description
payload (schema: NumberSchema<T>) => NumberSchema<T> (Optional)

Returns:

NumberSchema<T>