TypeScript is a more strict language that transpiles to JavaScript, like Babel does with ES5+. The main benefit is that typescript also requires the correct types (string, Object, Array, Number to name some), which make the code more robust.
Add TypeScript
Convert existing code to TypeScript
Merge into develop
An alternative would be ES5+ with Flow, in case it is difficult to set up. Flow allows to do type checking by code comments, so the code remains to work without Flow.
TypeScript is a more strict language that transpiles to JavaScript, like Babel does with ES5+. The main benefit is that typescript also requires the correct types (
string
,Object
,Array
,Number
to name some), which make the code more robust.An alternative would be ES5+ with Flow, in case it is difficult to set up. Flow allows to do type checking by code comments, so the code remains to work without Flow.