vtils

Home > validator > yup > NumberSchema > nonPositiveInteger

yup.NumberSchema.nonPositiveInteger() method

非正整数

Signature:

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

Parameters

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

Returns:

this