vtils

Home > validator > yup > NumberSchema > positiveInteger

yup.NumberSchema.positiveInteger() method

正整数

Signature:

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

Parameters

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

Returns:

this