vtils

Home > validator > yup > NumberSchema > nonPositive

yup.NumberSchema.nonPositive() method

非正数

Signature:

nonPositive(message?: NumberLocale['nonPositive']): this;

Parameters

Parameter Type Description
message NumberLocale[‘nonPositive’] (Optional)

Returns:

this