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

feat: fix issues with constructor method #124

Merged
merged 2 commits into from
Jan 13, 2019

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Jan 13, 2019

  • add missing resultType and typeParameters
  • fix range of constructor identifier when modifiers are present
  • constructor property in objects should have kind init
  • remove dead code

- add missing resultType and typeParameters
- fix range of constructor identifier when modifiers are present
- constructor property in objects should have kind init
- remove dead code
result.typeParameters = convertTSTypeParametersToTypeParametersDeclaration(
node.typeParameters
);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

babel parses it in this way, in objects typeParameters are assigned to Property, and in classes to methods

@codecov
Copy link

codecov bot commented Jan 13, 2019

Codecov Report

Merging #124 into master will increase coverage by 0.22%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
+ Coverage   93.49%   93.71%   +0.22%     
==========================================
  Files           8        8              
  Lines        1398     1401       +3     
  Branches      324      325       +1     
==========================================
+ Hits         1307     1313       +6     
+ Misses         50       49       -1     
+ Partials       41       39       -2
Impacted Files Coverage Δ
src/node-utils.ts 96.05% <100%> (+0.05%) ⬆️
src/convert.ts 94.46% <100%> (+0.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 131bdea...f803a16. Read the comment docs.

@JamesHenry JamesHenry merged commit 8c53fc3 into JamesHenry:master Jan 13, 2019
@JamesHenry
Copy link
Owner

Great, thanks!

@JamesHenry
Copy link
Owner

🎉 This PR is included in version 18.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@armano2 armano2 deleted the methods branch January 13, 2019 20:39
@armano2
Copy link
Contributor Author

armano2 commented Jan 13, 2019

did you read my comment?

@JamesHenry
Copy link
Owner

This one? #124 (comment)

@armano2
Copy link
Contributor Author

armano2 commented Jan 13, 2019

yes, i'm just unsure if we should follow them on this one

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants