Yup methods to validate numeric strings
npm install yup-numericyup methods for validating numeric strings. Methods to validate whether string contains a valid number.
bash
npm install yup-numeric
`Usage
`ts
import { numeric } from 'yup-numeric';const schema = numeric();
const value = '1.0000000000000000000000000000000000001';
const result = await schema.validate(value);
`API
$3
Value must be greater than or equal to num.$3
Value must be less than or equal to num.$3
Value must be equal to num.$3
Value must not be equal to num.$3
Value must be greater than num.$3
Value must be less than num.$3
Set a minimum value for the numeric string value.$3
Set a maximum value for the string value.$3
Validates the string value is an integer.$3
Value must be greater than num.$3
Value must be less than num`.