JSON → TypeScript
Interfaces generieren
Über dieses Tool
Paste any JSON sample and get strongly-typed TypeScript interfaces or types. Detects optional fields by merging arrays of objects with different shapes.
Funktionen
- interface or type output
- Merges array elements into a single shape with optionals
- Names nested types from their key
- Quoted keys for non-identifiers
So funktioniert's
- Paste a JSON example.
- Set the root type name.
- Copy the generated TypeScript.
🔒 100 % privat
Alles passiert direkt in deinem Browser mit JavaScript und WebAssembly. Deine Dateien werden nie hochgeladen, nie gespeichert und nie von uns gesehen.
Häufig gestellte Fragen
Can it infer string literal unions?
Currently it produces 'string'; literal-union inference is on the roadmap.