vtils

Home > validator > yup > NumberSchema > lessThan

yup.NumberSchema.lessThan() method

应小于

Signature:

lessThan(max: Refable<number>, message?: NumberLocale['lessThan']): this;

Parameters

Parameter Type Description
max Refable<number>  
message NumberLocale[‘lessThan’] (Optional)

Returns:

this