JSON → TypeScript
Genera interfacce
Informazioni su questo strumento
Paste any JSON sample and get strongly-typed TypeScript interfaces or types. Detects optional fields by merging arrays of objects with different shapes.
FunzionalitÃ
- interface or type output
- Merges array elements into a single shape with optionals
- Names nested types from their key
- Quoted keys for non-identifiers
Come si usa
- Paste a JSON example.
- Set the root type name.
- Copy the generated TypeScript.
🔒 100% privato
Tutto avviene all'interno del tuo browser con JavaScript e WebAssembly. I tuoi file non vengono mai caricati su un server, mai memorizzati e mai visti da noi.
Domande frequenti
Can it infer string literal unions?
Currently it produces 'string'; literal-union inference is on the roadmap.