vtils

Home > validator > yup > NumberSchema > nonNegative

yup.NumberSchema.nonNegative() method

非负数

Signature:

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

Parameters

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

Returns:

this