flowts icon indicating copy to clipboard operation
flowts copied to clipboard

Support for Flow enums in flowts

Open amyleecodes opened this issue 3 years ago • 1 comments

Flow has support for enums: https://flow.org/en/docs/enums/

tsflow can properly convert Typescript enums to Flow enums, but flowts will error with a babel parse error if it encounters a Flow enum.

Is this something on the roadmap or planned to be supported? Thanks!

amyleecodes avatar Sep 14 '22 00:09 amyleecodes

Was not in the roadmap - codebases, I converted so far, did not had it.

Added support for it in https://github.com/zxbodya/flowts/commit/57217afad6c2159ac2a0837693ffcd447c869221, and just published a new version of flowts.


Let me know, if it works for you or if there are cases not supported yet.

zxbodya avatar Sep 14 '22 22:09 zxbodya

Apologies for the late reply on this– It worked perfectly. Thanks so much.

amyleecodes avatar Nov 03 '22 23:11 amyleecodes