TypeScript Type Generator

IntermediadevelopmentContexto mínimo: 16K

Generates TypeScript type definitions from various sources — JSON data, API responses, database schemas, or plain descriptions. Produces strict types with proper generics, utility types, discriminated unions, and JSDoc comments.

Casos de uso

  • Generating types from JSON API responses
  • Creating Zod schemas with inferred types
  • Converting database schemas to TypeScript interfaces
  • Building discriminated unions for state machines
  • Adding strict types to untyped JavaScript code

Prompt de ejemplo

Generate TypeScript types for the following JSON API response.

Requirements:
- Use interfaces (not type aliases) for objects
- Add JSDoc comments for each field
- Use strict types (no `any`)
- Handle nullable fields with `| null`
- Export all types
- Generate a Zod schema that matches the types

JSON response:
```json
[paste JSON here]
```

Modelos recomendados

Herramientas compatibles

claude-codecursorgithub-copilotkiroany

Modalidades

Entrada: text, code
Salida: code

Skills relacionadas

Autor

OpenModels Community

@openmodelsrun