TypeScript Interface Generator
By alex m · Published · Updated
Generate TypeScript interfaces and types from a plain-language description.
Tags: coding, typescript, interface
Prompt template
## Introduction Generate precise TypeScript interfaces and types from your data model description. ## Data Model Details - Name of the Interface / Type: [text: e.g., UserProfile, OrderItem] - Description of the data: [textarea: Describe the fields and what they represent] - Optional vs Required Fields: [textarea: List which fields are optional (use ? notation)] ## Type Options - Use `interface` or `type`: [dropdown: interface, type, Both with explanation] - Extend an existing interface: [toggle: Yes, No] - If yes, extended interface name: [text: e.g., BaseEntity] ## Extra Features [multi: Add JSDoc comments, Include example instantiation, Generate Zod validation schema, Generate JSON schema, Add utility types (Partial, Readonly, Pick)]