-
Notifications
You must be signed in to change notification settings - Fork 220
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
Add type checking to source files #378
Comments
@matthieu-foucault my recommendation doesn't rewrite code on In |
Nice!, I didn't know that was possible, thanks for the tip! For future reference, here's the documentation for that: https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html |
So the idea is to keep js as is (just add some typescript definition files + jsdocs) but still run a check via typescript? that actually sounds really nice :) |
@daKmoR yep, you can look setup in webpack repo 👍 |
@evilebottnawi at this wip you can see my intial attempt at starting type linting - can you pls check if it's the right direction? also would we still need to generate type definition files or are the js doc hints good enough? If there would be a need to generate them any sugguestion on howto? I looked at the webpack setup but that seems rather complex 🙈 |
Generating the typedefs is done simply by adding The other option is to publish under Either way, I don't think that publishing the type declarations would have much of an impact (unless someone writes something that extends |
@matthieu-foucault hmm that does not seem to work? I would expect that a file |
Sorry, just noticed that comment now: might be because of the |
As karma is now deprecated and coming up on EOL, we are no longer planning on any significant enhancements to this project and are instead going to focus on security updates, stability, and a migration path forward as karma's lifecycle comes to an end. Thank you for supporting and using this project! |
Expected Behavior / Situation
Not having bugs due to type errors
Actual Behavior / Situation
We have bugs such as #375 and #355 that wouldn't be there with static type checking
Modification Proposal
Build the source code with typescript
The text was updated successfully, but these errors were encountered: