Commit b7bf883
committed
feat: deduplicate repeated inline object types in generated output
Splits type generation into a 3-phase pipeline:
1. Collect TypeNodes from all queries
2. Build deduplication registry by fingerprinting object types
3. Generate TS types, replacing duplicates with references
Duplicate object types appearing across queries are extracted into
shared "Inline"-prefixed type aliases, reducing generated code size
and improving readability.1 parent 24e2348 commit b7bf883
File tree
3 files changed
+273
-266
lines changed- src
- commands/typegen/__tests__/__snapshots__
- typescript
3 files changed
+273
-266
lines changed
0 commit comments