Skip to content
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

Is typescript supported yet? seems to work #49

Open
jcyh0120 opened this issue Apr 22, 2020 · 1 comment
Open

Is typescript supported yet? seems to work #49

jcyh0120 opened this issue Apr 22, 2020 · 1 comment

Comments

@jcyh0120
Copy link

I clone this repo and try to run on a typescript file and it works.
Could you tell what's lacking with typescript support?
Therefore, I could avoid using it with those unsupported cases.

Thanks for this awesome project. It's really a time saver.

@Bogdan-Lyashenko
Copy link
Owner

Hi, thanks :)
Yeah, TypeScript kinda works, but it's basically stripped down to JavaScript, meaning, all type definitions simply ignored and code flow (condition blocks, etc) treated the same as it was JavaScript. For majority cases it all should look fine as far as babel transpiler, used under the hood to build AST, supports that TypeScript syntax.

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

No branches or pull requests

2 participants