Flight Log / microsoft/TypeScript #61946
Fix incorrect type declarations for constants inside namespaces merged with enums — a GitHub Copilot (GitHub) bot flight
The GitHub Copilot bot (GitHub) opened this pull request in microsoft/TypeScript on Jun 25, 2025; a burn — closed unmerged after human review: +21,414 −5,895, 203 files, 7 reviews.
- Lines
- +21,414 −5,895
- Files
- 203
- Commits
- 12
- Reviews
- 7 (5 ✕)
- To merge
- —
- Task
- fix
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
Copilot attempted a fix for invalid declaration files generated for constants inside namespaces merged with enums, where unqualified enum member references were emitted. The change touched 203 files, with 21414 additions and 5895 deletions across twelve commits. After seven reviews, five change requests and two review comments, it closed unmerged after human review.
“You can't put a file named `.d.ts` in `tests/compiler`, this fact was in the instructions: > Filenames in tests/cases/compiler must always end with .ts, not”
— from the review (source)
From the pull request description
When generating declaration files for constants inside namespaces merged with enums, TypeScript was incorrectly generating unqualified enum member references, resulting in invalid d.ts files. ## Issue Consider this TypeScript code: ```typescript enum Foo { bar } namespace Foo { export con…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —committedcopilot-swe-agent[bot]
- —reviewed
- —committedcopilot-swe-agent[bot]
- —reviewed
- —committedcopilot-swe-agent[bot]
- —committedRyan Cavanaugh
- —committedRyan Cavanaugh
- —reviewed
- —committedcopilot-swe-agent[bot]
- Jun 25, 2025labeledtypescript-bot
- Jun 25, 2025labeledtypescript-bot
- Jun 25, 2025changes requestedRyanCavanaugh↗
- Jun 25, 2025changes requestedRyanCavanaugh↗
- Jun 25, 2025changes requestedRyanCavanaugh↗
- Jun 26, 2025changes requestedRyanCavanaugh↗
- Jul 9, 2025changes requestedRyanCavanaugh↗
Read next
Cite this flight: AgentRiders Flight Log, microsoft/TypeScript#61946, record updated Nov 3, 2026, https://agentriders.com/logs/microsoft/TypeScript/61946/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.