Skip to content
@nhtio/validation
Search
K
Main Navigation
Home
Quick Start
API
Appearance
Menu
Return to top
On this page
Interface: WhenSchemaOptions<ThenSchema, OtherwiseSchema>
Type Parameters
Type Parameter
Default type
ThenSchema
any
OtherwiseSchema
any
Properties
Property
Type
Description
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.