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

TypeScript support #33

Open
xiaodeaux opened this issue Oct 29, 2018 · 2 comments
Open

TypeScript support #33

xiaodeaux opened this issue Oct 29, 2018 · 2 comments

Comments

@xiaodeaux
Copy link

Just adding an issue to keep track of any progress towards supporting TypeScript. <3

@wtho
Copy link

wtho commented Nov 27, 2018

Yeah, that would be great!

@Bogdan-Lyashenko maybe you can give a quick roadmap what has to be done to plugin the TS AST-Parser?

It might be quite some work to implement it, but if you can outline out the starting points, someone could begin to do it. Is there more to do to support TS than plugging in the Parser? Maybe you can comment if the rendering has to be modified as well.

TS mostly adds Type Parameters to functions, tokens, expressions, ...

@Bogdan-Lyashenko
Copy link
Owner

@wtho I've updated babel to 7nth version recently to support TS. Now if you try something like const a: string = 'abc' it should work (parser will not fail). I think only 'converter' functions will be affected, meaning, what exactly should be displayed inside blocks in flowchart. It's here https://github.com/Bogdan-Lyashenko/js-code-to-svg-flowchart/tree/master/src/builder/converters

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

3 participants