Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Prefix function declarations in TS namespaces (fixes #78) #82

Merged
merged 2 commits into from
Sep 16, 2016

Conversation

JamesHenry
Copy link
Member

No description provided.

@eslintbot
Copy link

LGTM

* Prefix exports from TypeScript namespaces with "TS" to distinguish
* them from ES2015 exports
*/
if (node.parent && node.parent.kind === SyntaxKind.ModuleBlock) {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should be more specific with these names.

TSNamespaceExportDeclaration?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fine by me

@eslintbot
Copy link

LGTM

@JamesHenry
Copy link
Member Author

JamesHenry commented Sep 8, 2016

Updated, PTAL

@JamesHenry
Copy link
Member Author

JamesHenry commented Sep 16, 2016

(Just moving this into the main comment flow, as the comments on the outdated diff are not shown by default)

From @nzakas:

TSNamespaceFunctionDeclaration. I'm just wondering if this same syntactic form can be used in other locations or not. (Basically, is "Namespace" too specific for this node or not?)

Me: After reviewing the spec again, I do not believe so, and I think this PR should be good to go

@nzakas nzakas merged commit ac0c95d into master Sep 16, 2016
@JamesHenry JamesHenry deleted the declare-namespace-export-function branch October 13, 2016 22:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants