An Interest In:
Web News this Week
- April 3, 2024
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
April 22, 2023 03:00 pm GMT
Original Link: https://dev.to/seyyedkhandon/fastest-way-to-auto-generate-types-for-typescript-and-input-validation-478p
Fastest Way to Auto Generate Types for Typescript and Input validation
Short description
Writing types for API's especially giant JSON's are frustrating especially when it comes to input validation.
solution:
Just paste your json inside app.quicktype.io or it's vscode
Now you can paste that type into transform.tools/typescript-to-zod to generate the corresponding zod schema for input validation:
Note For Practical step by step example check this 4min youtube video:
Original Link: https://dev.to/seyyedkhandon/fastest-way-to-auto-generate-types-for-typescript-and-input-validation-478p
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To