Transition from JavaScript to TypeScript
As we briefly discussed before, using TypeScript has several benefits over JavaScript: 1) preventing errors, 2) improve development speed 3) better code maintainability etc.
In this issue I would like to describe a strategy for adopting TypeScript. It is not the goal to rewrite the whole code base (since TypeScript is a JavaScript super set, this is also not needed), but the goal is to support TypeScript for new components. To effectively support this, several components should be rewritten in TypeScript:
- Services
/services
- Reducers
/reducers
- Redux store
/store
When this is rewritten in TypeScript, new TypeScript components can benefit from this directly.
I started with the services folder in the linked MR. This MR also contains the necessary config for supporting TypeScript. I think it makes sense to continue with the services folder and afterwards discuss if this is indeed the right direction. Feedback is welcome :)