Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix export=global auto-import exclusion #32898

Merged
merged 1 commit into from Aug 14, 2019

Conversation

andrewbranch
Copy link
Member

Fixes #30471

If any declaration of a symbol is global, then a global is available. Conversely, every declaration of what export= resolves to has to be in an ES6 module in order for us to give you an auto-import.

@RyanCavanaugh
Copy link
Member

@typescript-bot cherry-pick this into release-3.6

@typescript-bot
Copy link
Collaborator

Hey @RyanCavanaugh, I've opened #32900 for you.

typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull request Aug 14, 2019
Component commits:
7f6543c Fix export=global auto import exclusion
RyanCavanaugh pushed a commit that referenced this pull request Aug 14, 2019
Component commits:
7f6543c Fix export=global auto import exclusion
@andrewbranch andrewbranch merged commit 2217f0b into microsoft:master Aug 14, 2019
timsuchanek pushed a commit to timsuchanek/TypeScript that referenced this pull request Sep 11, 2019
@bashfulrock
Copy link

Well, it's back...

@andrewbranch andrewbranch deleted the bug/30471 branch February 20, 2024 16:36
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.

console.log auto imports import console=require('console');
5 participants