tsed
tsed copied to clipboard
Interop and adapters for Zod/Valibot/Yup, etc.
Objective
Provide type-safe adapters/importers for third-party schema libraries (Zod, Valibot, Yup, etc.), ensuring type inference matches expectations.
Details
- Implement adapter utilities at the type level.
- Ensure runtime compatibility and document limitations.
- Offer migration and interop guidance for users.
Parent Epic: schema-inference-epic
Hey @Romakita i would love to work on this issue, should i start and raise PR? or it's already fixed
No, isn’t implemented.
The main idea is to allows the following usage:
@Schema(zodschema)
Note: @Schema decorator accept any json schema by default ;)
@Romakita hey only implementing the @schema(zodschema) would be good enough right. i'll be implementing this so decorators accept the zod to json schema format