Skip to content

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

Merged
Wesley Wigham (weswigham) merged 2 commits into
microsoft:masterfrom
weswigham:no-umd-globals-in-module-declarations
Sep 7, 2017
Merged

Wesley Wigham (weswigham) merged 2 commits into
microsoft:masterfrom
weswigham:no-umd-globals-in-module-declarations

Conversation

@weswigham

Copy link
Copy Markdown
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.

@@ -0,0 +1,63 @@
// @declaration: true

Copy link
Copy Markdown

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
Copy Markdown
Contributor

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
Copy Markdown
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
Wesley Wigham (weswigham) force-pushed the no-umd-globals-in-module-declarations branch from b10dfac to e0ae4b4 Compare September 5, 2017 20:36
@weswigham
Wesley Wigham (weswigham) merged commit c3e0906 into microsoft:master Sep 7, 2017
@weswigham
Wesley Wigham (weswigham) deleted the no-umd-globals-in-module-declarations branch December 20, 2017 22:40
@microsoft 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