frintjs / frint

Modular JavaScript framework for building scalable and reactive applications
https://frint.js.org/
MIT License
756 stars 37 forks source link

Should we move to TypeScript? #388

Closed fahad19 closed 6 years ago

fahad19 commented 6 years ago

This is an issue for collecting feedback on whether writing FrintJS source in TypeScript is a good idea or not.

Some questions that I would like everyone to answer:

If all positive:

markvincze commented 6 years ago

In short: I'd absolutely support it.

Pros:

Cons:

I'd be happy to help, but can't make promises, I'm not sure how much free time I'll have :/.

asci commented 6 years ago

Any particular way you want to write it (like C#ish way or more Flow-ish)?

We have an experience using TypeScript in our projects and what I see so far — it really matters which features will you use. Sometimes doesn't look like JS and new concepts could lead to some new issues.

Also, tooling is matter — to get most of the typescript is it better to use VSCode\Webstorm. But there still could be some problems: for example, we found an issue with tslint using async\await.

So for me would be cool to see the way you want to use it (like a guide or so)

discosultan commented 6 years ago

Overall I favor the idea and I think it makes sense since we already support TypeScript through type definition files.

Pros:

Cons:

fahad19 commented 6 years ago

Refs #406

fahad19 commented 6 years ago

Yes, we are migrating.