Coding & Dev
Beginner
TypeScript Interface Generator-2
Generate comprehensive TypeScript interfaces and types from sample JSON.
👁️ 3421 views
❤️ 129 likes
📋 359 copies
The Prompt Template
Convert the following raw JSON payload into TypeScript interfaces: [JSON_PAYLOAD]. Requirements: 1) Generate nested interfaces for complex objects, 2) Use optional properties where keys might be absent, 3) Use union types where values can have multiple types, 4) Add JSDoc comments describing the properties.
308 characters
Tags
Works Best With
ChatGPT Gemini