-
-
Notifications
You must be signed in to change notification settings - Fork 256
Add support for declare export + fixes #224
Conversation
Codecov Report
@@ Coverage Diff @@
## master #224 +/- ##
==========================================
+ Coverage 98.2% 98.24% +0.03%
==========================================
Files 20 20
Lines 3462 3530 +68
Branches 935 972 +37
==========================================
+ Hits 3400 3468 +68
Misses 23 23
Partials 39 39
Continue to review full report at Codecov.
|
src/plugins/flow.js
Outdated
["const"]: "declare export var", | ||
["let"]: "declare export var", | ||
["type"]: "export type", | ||
["interface"]: "export interface", |
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.
Why the computed property?
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.
Hmm, well...I change it :D
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.
👍
Ran through and compared against Flow parser, nice work!
Add check for multiple module.export declarations
Refactor parsing object properties to share more code and add support for getters and setters
This add support for
declare export
. I tried to follow the flow parser as close as possible.I also found some related problems and fixed them.
kind