-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
support export type named exports from typescript #1304
support export type named exports from typescript #1304
Conversation
2 similar comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can you please add some test cases?
@ljharb I was checking out the bug this fixes, and I'm just curious—what would a test case look like for this? I'm not sure I see any existing examples of specs for the other named declaration exports (just grepped for a few of them) |
Yeah I’ve been meaning to ask that. In fact it would seem this somehow increased coverage although not sure how or why. It’s a single case statement added and only covers a typescript type alias. |
The OP in the linked issue seems to have a test case? |
Here's a commit that adds test-coverage. (GitHub won't let me PR it directly into @bradennapier's branch for some reason) This turned out to be a weird one -- there are already tests for this functionality, but they were passing. The root issue actually appears to be a regression that only appears when switching from
|
4d93618
to
035ddb3
Compare
@schmod thanks; i've added that commit to this branch. |
035ddb3
to
c3b5707
Compare
@schmod looks like tests are failing in eslint 2 and 3. |
Huh. I'm guessing that we've uncovered an existing incompatibility between Given that |
c3b5707
to
eeff95f
Compare
@schmod eslint 2 and 3 tests are still failing with that commit :-/ |
Huh, I'll have to dig in. They passed on my local machine. |
Fun times. The tests pass on MacOS (using the I've narrowed this down to Commit: 1914fd6 |
eeff95f
to
49af9d8
Compare
Does this one also include export import SomeEnum = SomeModule.SomeEnum; |
Adds support so that
export type
named imports work with this plugin.Resolves #1282