vtils

Home > validator > yup > StringSchema > required

yup.StringSchema.required() method

Signature:

required(message?: MixedLocale['required']): this;

Parameters

Parameter Type Description
message MixedLocale[‘required’] (Optional)

Returns:

this