Skip to content

Feat: add TypeScript code generation (gen-ts)

Choose a tag to compare

@xpineal xpineal released this 02 Apr 10:05
· 65 commits to main since this release
8e82012

Summary

  • Add gcode gen-ts subcommand that generates TypeScript type definitions from proto files
  • Generates .pb.ts files with interfaces, enums, enum name mappings, and validation metadata
  • Cross-file type references resolved via TypeRegistry with ES module imports (.js extension)
  • Runtime verification via tsc --noEmit + tsx test runner, integrated into Go tests
  • Documentation updated (EN/ZH): getting-started, architecture, design-decisions, README