JSON → TypeScript
Generer interfaces
Om dette verktøyet
Paste any JSON sample and get strongly-typed TypeScript interfaces or types. Detects optional fields by merging arrays of objects with different shapes.
Funksjoner
- interface or type output
- Merges array elements into a single shape with optionals
- Names nested types from their key
- Quoted keys for non-identifiers
Slik bruker du det
- Paste a JSON example.
- Set the root type name.
- Copy the generated TypeScript.
🔒 100 % privat
Alt skjer inne i nettleseren din med JavaScript og WebAssembly. Filene dine lastes aldri opp, lagres aldri og ses aldri av oss.
Ofte stilte spørsmål
Can it infer string literal unions?
Currently it produces 'string'; literal-union inference is on the roadmap.