Schema<T>
Base interface for all Kanon schemas.
Since
2.0.0
Type Parameters
T: T = unknown
The type that this schema validates
Properties
type: SchemaType
message?: string
refinements?: (value) => string | true[]
value:
T
Returns:string | true
validator(): (value) => ValidatorResult<T>
value:
unknown
Returns:ValidatorResult<T>