Skip to content

[Fix] export/TypeScript: properly detect export specifiers as children of a TS module block#1889

Merged
ljharb merged 1 commit intoimport-js:masterfrom
andreubotella:fix/export-specifiers-in-ts-module
Oct 3, 2020
Merged

[Fix] export/TypeScript: properly detect export specifiers as children of a TS module block#1889
ljharb merged 1 commit intoimport-js:masterfrom
andreubotella:fix/export-specifiers-in-ts-module

Conversation

@andreubotella
Copy link
Copy Markdown
Contributor

Fixes #1773

@coveralls
Copy link
Copy Markdown

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 thread src/rules/export.js
Comment on lines +90 to 95
'ExportSpecifier': (node) => addNamed(
node.exported.name,
node.exported,
getParent(node.parent)
),

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