Home > validator > yup > number
Signature:
export declare function number<T extends number = number>(payload?: (schema: NumberSchema<T>) => NumberSchema<T>): NumberSchema<T>;
Parameter | Type | Description |
---|---|---|
payload | (schema: NumberSchema<T>) => NumberSchema<T> | (Optional) |
Returns:
NumberSchema<T>