Privvert logoPrivvert

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

  1. Paste a JSON example.
  2. Set the root type name.
  3. 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.