Skip to content

feat(framework): add template registry codegen (#18)#45

Merged
qantrepreneur merged 1 commit into
mainfrom
18-codegen-templates
May 14, 2026
Merged

feat(framework): add template registry codegen (#18)#45
qantrepreneur merged 1 commit into
mainfrom
18-codegen-templates

Conversation

@qantrepreneur
Copy link
Copy Markdown
Contributor

Summary

  • Adds generateTemplateRegistry(filePaths) pure function
  • Generates .d.ts module augmentation for TemplateRegistry
  • Sorts entries alphabetically, filters non-.tsx files

Test plan

  • Single template produces correct d.ts
  • Multiple templates sorted alphabetically
  • Empty input produces empty registry
  • Non-.tsx files filtered out

Closes #18

🤖 Generated with Claude Code

Pure function that generates .d.ts module augmentation
for TemplateRegistry from template file paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@qantrepreneur qantrepreneur force-pushed the 18-codegen-templates branch from a887ffd to 84687b9 Compare May 14, 2026 16:44
@qantrepreneur qantrepreneur merged commit 5cbf1f8 into main May 14, 2026
2 checks passed
@qantrepreneur qantrepreneur deleted the 18-codegen-templates branch May 14, 2026 16:45
@github-actions github-actions Bot mentioned this pull request May 14, 2026
qantrepreneur added a commit that referenced this pull request May 21, 2026
Pure function that generates .d.ts module augmentation
for TemplateRegistry from template file paths.

Co-authored-by: Lorenzo <lorenzofkramer@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codegen: template registry type generation

1 participant