Input JSON to convert it into TypeScript interfaces!
input
→
result
Convert JSON to TypeScript Types!
Input JSON to convert it into TypeScript interfaces!
Use Cases
- Types for API responses
- Paste an API response to get interfaces for every nested object, ready to use as types.
- Optional fields and unions
- Keys present in only some items become optional (?), and mixed value types become unions like string | number.