Skip to content

feat(typescript): support erasableSyntaxOnly in TypeScript generators#134

Merged
adamcavendish merged 1 commit into
mainfrom
adamcavendish/typescript-erasable-syntax-only
Jul 1, 2026
Merged

feat(typescript): support erasableSyntaxOnly in TypeScript generators#134
adamcavendish merged 1 commit into
mainfrom
adamcavendish/typescript-erasable-syntax-only

Conversation

@adamcavendish

Copy link
Copy Markdown
Collaborator

Summary

  • Replace generated TypeScript parameter properties with explicit fields and assignments
  • Keep the TypeScript fetch runtime compatible with erasableSyntaxOnly mode
  • Collapse generated API unions containing unknown down to plain unknown
  • Regenerate TypeScript fetch runtime goldens for the updated output

Tests

  • cargo fmt --all -- --check
  • cargo test dedup_union_collapses_unknown_members
  • cargo test --test golden_tests_typescript_fetch

- Replace generated parameter properties with explicit fields and assignments
- Keep runtime.ts compatible with TypeScript's erasableSyntaxOnly mode
- Collapse TypeScript API unions containing unknown down to plain unknown
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adamcavendish adamcavendish merged commit b4b9ad2 into main Jul 1, 2026
25 checks passed
@adamcavendish adamcavendish deleted the adamcavendish/typescript-erasable-syntax-only branch July 1, 2026 04:38
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.

1 participant