How to use this developer tool
- Choose a generation mode.
- Enter a root name.
- For form modes, enter one property per line as name: type.
- For JSON mode, paste valid JSON and generate nested declarations.
Generate practical TypeScript interfaces, type aliases, classes, enums, API wrappers, type guards, and JSON-derived types with configurable names and properties.
The generator converts simple property definitions or JSON samples into reusable TypeScript declarations with predictable formatting and safe identifier handling.
JSON inference reflects only the supplied sample. Empty arrays and null-only values may require manual refinement.
Input:
id: number name: string email: stringExpected use: Run the selected mode and review the generated output and statistics.
Choose Interface and enter one name: type property per line.
Choose JSON to types, paste valid JSON, and provide a root type name.
Choose Type alias or Interface and define the response properties required by your API.
Choose Class, define its properties, and generate a constructor-based class.
The JSON mode recursively creates named declarations for nested objects and arrays.
| Module | Purpose |
|---|---|
| Input | Local browser processing |
| Analysis | Tool-specific lexical and structural logic |
| Output | Copy and download ready |
| Privacy | No upload or server execution |