joarwilk / flowgen

Generate flowtype definition files from TypeScript
Other
657 stars 87 forks source link

[wip] add type in converted type imports #190

Open zxbodya opened 2 years ago

zxbodya commented 2 years ago

In typescript it is possible to mix type and value imports, which currently is not correctly converted to flow.

This change adds logic to check if import for type and if so adds "type" in import.


work in progress - when testing on real code found it not working in some cases, need to look into it more