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>