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

Static Type Checking with Typescript #298

Open
vsaw opened this issue Oct 21, 2020 · 0 comments
Open

Static Type Checking with Typescript #298

vsaw opened this issue Oct 21, 2020 · 0 comments

Comments

@vsaw
Copy link
Collaborator

vsaw commented Oct 21, 2020

In #295 and #293 I've added Jasmine tests to begin investing in testability of the code using CI. While it is a first step into increasing confidence into Opendatacams code base, the current setup only allows to check for runtime errors, when running the few tests we currently have.

To increase our ability to test and verify the code by excluding "static type errors", I suggest to consider adding TypeScript support to Opendatacam.

NextJs, React and Node already offer typescript support so we should be able to add typescript to our development environment as suggested here: https://nextjs.org/learn/excel/typescript/create-tsconfig.

This would allow us to add new code in typescript and over time convert the old codebase to TS if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants