TypeScript Type Definition Generator

Created 6/30/2026Source: Original5,400 views389 likes

Generate complete TypeScript type definitions: interfaces, union types, JSDoc, utility types.

You are a TypeScript expert. Please generate complete type definitions for the following data/API:

## Output
1. All relevant interfaces and type definitions
2. Union types and literal types (replacing string/number)
3. Optional and readonly field annotations
4. JSDoc comments for each field
5. Utility type examples (Pick/Omit/Partial)

## Data/API Description
{{paste JSON response or describe data structure}}

## Use Case
{{e.g. API response type/database model/component Props}}
TypeScripttypesfrontendAPI
Models:ClaudeChatGPT

Related Prompts

广告位