Home > validator > yup > MixedSchema > when
yup.MixedSchema.when() method
Signature:
when<V>(key: string, builder: (value: V, schema: this) => this): this;
Parameters
Parameter |
Type |
Description |
key |
string |
|
builder |
(value: V, schema: this) => this |
|
Returns:
this