JSON a TypeScript
JSON a TypeScript
Funciona en tu navegador · Sin subidas
La herramienta y las instrucciones de esta página están en inglés por ahora. Funciona igual: todo se ejecuta en tu navegador.
Generate TypeScript
Tu navegador es demasiado antiguo para esta herramienta. Actualízalo o usa una versión reciente de Chrome, Edge, Firefox o Safari.
- Nada sale de tu dispositivo
- Sin límites de tamaño impuestos por un servidor
- Sin registro, sin marca de agua
- Gratis
How to convert JSON to TypeScript
- Paste your JSON, or try the example.
- Choose interface or type, export and optional fields.
- Copy or download the TypeScript.
What you get
- An interface for every object, named after its key.
- Optional fields (name?: string) for fields missing from some array items.
- Union types (string | null) where values differ.
- Keys that aren't valid names (like "created-at") are quoted.
Preguntas frecuentes
Is my JSON uploaded?
No. Everything happens in your browser, and the page is blocked from uploading anything.