Skip to content

Do not consider UMD alias symbols as visible within external modules #18049

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

Merged

Conversation

weswigham
Copy link
Member

Fixes #16155. In the example from the issue, this causes the type to be written without the alias. You can force the type to be written with an alias by making the module symbol or the type symbol visible within the file, as is typical for our current declaration emit.

@weswigham weswigham requested review from rbuckton, sandersn, a user and mhegazy and removed request for sandersn August 25, 2017 20:49
@ghost ghost mentioned this pull request Aug 25, 2017
@@ -0,0 +1,63 @@
// @declaration: true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a minimal test that reproduces the error -- looking at this test I would have no idea what it's trying to test..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should always strive for the smallest reproducible steps for a failure.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is now minimal

@weswigham weswigham force-pushed the no-umd-globals-in-module-declarations branch from b10dfac to e0ae4b4 Compare September 5, 2017 20:36
@weswigham weswigham merged commit c3e0906 into microsoft:master Sep 7, 2017
@weswigham weswigham deleted the no-umd-globals-in-module-declarations branch December 20, 2017 22:40
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants