vtils

Home > validator > yup > MixedSchema > test

yup.MixedSchema.test() method

Signature:

test(test: SchemaTestOptions<this, T>['test'] | RegExp, message?: SchemaTestOptions<this, T>['message']): this;

Parameters

Parameter Type Description
test SchemaTestOptions<this, T>[‘test’] | RegExp  
message SchemaTestOptions<this, T>[‘message’] (Optional)

Returns:

this