vtils

Home > validator > yup > NumberSchema > nonNegativeInteger

yup.NumberSchema.nonNegativeInteger() method

非负整数

Signature:

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

Parameters

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

Returns:

this