vtils

Home > validator > yup > StringSchema > length

yup.StringSchema.length() method

Signature:

length(limit: Refable<number>, message?: StringLocale['length']): this;

Parameters

Parameter Type Description
limit Refable<number>  
message StringLocale[‘length’] (Optional)

Returns:

this