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/TypeScript: properly detect export specifiers as children of a TS module block #1889

Merged

Conversation

andreubotella
Copy link
Contributor

Fixes #1773

@coveralls
Copy link

coveralls commented Aug 20, 2020

Coverage Status

Coverage remained the same at 97.904% when pulling a00727e on andreubotella:fix/export-specifiers-in-ts-module into 5ade156 on benmosher:master.

Comment on lines +90 to 95
'ExportSpecifier': (node) => addNamed(
node.exported.name,
node.exported,
getParent(node.parent)
),

Copy link
Member

Choose a reason for hiding this comment

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

i'm a bit confused; all this is doing is reformatting. do these tests pass on master?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It changes getParent(node) to getParent(node.parent). That would've been more obvious if I hadn't reformatted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bump

@andreubotella andreubotella force-pushed the fix/export-specifiers-in-ts-module branch from 3bac3bf to b6c11be Compare August 26, 2020 10:12
@ljharb ljharb force-pushed the fix/export-specifiers-in-ts-module branch 2 times, most recently from fa44608 to a00727e Compare October 3, 2020 06:21
@ljharb ljharb merged commit a00727e into import-js:master Oct 3, 2020
@andreubotella andreubotella deleted the fix/export-specifiers-in-ts-module branch October 3, 2020 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[import/export] "Multiple default exports" in Typescript ambient module declarations
3 participants