Skip to content

Interface: WhenSchemaOptions<ThenSchema, OtherwiseSchema> ​

Type Parameters ​

Type ParameterDefault type
ThenSchemaany
OtherwiseSchemaany

Properties ​

PropertyTypeDescription
otherwise?SchemaLike_2<OtherwiseSchema>the alternative schema type if the condition is false. Required if then is missing.
then?SchemaLike_2<ThenSchema>the alternative schema type if the condition is true. Required if otherwise is missing.