On this pageSchemaOptions <T>Type parametersTIndex PropertiesapidefaultValuetypeMethodscastProperties apiapi: Record<string, CriteriaFactory<T>>A mapping of criteria to factories, to provide chainable validations.optionaldefaultValuedefaultValue?: DefaultValue<T>Default value to return when an undefined value is validated.typetype: stringType of schema.Methods optionalcastcast(value: unknown): TFunction to cast the value when all validations pass.
A mapping of criteria to factories, to provide chainable validations.