Skip to content

Stop prefixing identifiers from global augs#804

Merged
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
hazzard993:global-augmentation-fix
Jan 19, 2020
Merged

Stop prefixing identifiers from global augs#804
Perryvw merged 2 commits intoTypeScriptToLua:masterfrom
hazzard993:global-augmentation-fix

Conversation

@hazzard993
Copy link
Copy Markdown
Contributor

Closes #803


const exportScope = getIdentifierExportScope(context, identifier);
if (exportScope) {
if (exportScope && !(ts.isModuleDeclaration(exportScope) && isGlobalAugmentation(exportScope))) {
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.

I think it's better to handle this inside getSymbolExportScope

@Perryvw Perryvw merged commit c920bb3 into TypeScriptToLua:master Jan 19, 2020
@hazzard993 hazzard993 deleted the global-augmentation-fix branch January 19, 2020 23:28
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.

Members of declare global are prefixed with global

3 participants