Universal adapter for schema validation
npm install @typeschema/all
Universal adapter for schema validation
https://typeschema.com ✨
Infer: Extracts the output type of a schemaInferIn: Extracts the input type of a schemawrap(schema): Returns the wrapped schema with access to its operationsvalidate(schema, data): Returns the validated data or a list of validation issuesassert(schema, data): Returns the validated data or throws an AggregateErrortoJSONSchema(schema): Converts the schema into the equivalent JSON schema