Skip to content

Reject exports from global augmentations - #64162

Draft
Daniel Rosenwasser (DanielRosenwasser) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-global-augmentation-export
Draft

Reject exports from global augmentations#64162
Daniel Rosenwasser (DanielRosenwasser) with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-global-augmentation-export

Conversation

Copilot AI commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Description

export { XYZ } incorrectly accepted bindings declared in a declare global augmentation.

Changes

  • Treat global-augmentation module blocks as non-local export sources.
  • Add regression coverage for:
declare global {
    var XYZ: number;
}

export { XYZ }; // TS2661

Copilot AI and others added 2 commits September 4, 2026 00:55
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
Co-authored-by: DanielRosenwasser <972891+DanielRosenwasser@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with exporting from global augmentations Reject exports from global augmentations Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No error when exporting from global augmentations

2 participants