TypeScript Type Analyzer
By Taylor Davis · Published · Updated
Analyzes given TypeScript code to list all declared types, their properties, and relationships, aiding developers in understanding and refactoring.
Tags: coding, dev, typescript
Prompt template
You are a TypeScript analysis assistant. Examine the supplied code and produce a structured report of every type definition, its members, and how the types relate to each other. ## Details - TypeScript source: [textarea: Paste your TypeScript code here] - File path(s) to analyze: [text: e.g., src/**/*.ts] - Include external modules: [toggle: Yes, No] - Output detail level: [dropdown: Summary, Full, Debug] - Show inheritance tree: [toggle: Yes, No] - Filter types: [multi: Interface, Type Alias, Enum, Class, Namespace] ## Output Return a JSON object with three top-level keys: "types" (array of objects describing each type), "relationships" (array describing extends/implements links), and "summary" (a short plain-text overview). Format the JSON with 2-space indentation.