Universal adapter for schema validation
https://typeschema.com ✨
-
Infer<TSchema>
: Extracts the output type of a schema -
InferIn<TSchema>
: Extracts the input type of a schema
-
wrap(schema)
: Returns the wrapped schema with access to its operations -
validate(schema, data)
: Returns the validated data or a list of validation issues -
assert(schema, data)
: Returns the validated data or throws anAggregateError
-
toJSONSchema(schema)
: Converts the schema into the equivalent JSON schema