Skip to content

Interface: WhenSchemaOptions<ThenSchema, OtherwiseSchema>

Type Parameters

Type ParameterDefault type
ThenSchemaany
OtherwiseSchemaany

Properties

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