vtils

Home > validator > yup > NumberSchema > id

yup.NumberSchema.id() method

ID (positiveInteger 的别名)

Signature:

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

Parameters

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

Returns:

this