MightyHive / chrome-extension

0 stars 0 forks source link

Research conversion to TypeScript #3

Closed jreidgreer closed 6 years ago

jreidgreer commented 7 years ago

Suggestion This project utilizes a massive amount of data, and passes data properties in every direction. As a result, it might be worth considering transitioning this codebase to TypeScript at some point to put guardrails around this.

TypeScript is an excellent language that far exceeds the abilities of PropTypes when it comes to strictly typing. And considering much of the code in the project is outside of React, it makes it all the more worth considering.

Caveats There is a learning curve when it comes to TypeScript. The syntax is somewhat alien to many JS developers and the tooling can be challenging to set up for beginners. In addition, I am unaware of the complexities that come with integrating it into a React project, having only used it for Angular. The TypeScript project does have examples and boilerplate code for beginning a TypeScript React project.

jreidgreer commented 6 years ago

Closing since we'll need to utilize this space for current issues.