-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Strictify on all layers #23542
Comments
This gets RoomView.ts to pass `tsc --strict`. Should be functionally unchanged. A number of other files were touched to correct signatures. See: * element-hq/element-web#23542 * element-hq/element-web#23692 Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
This gets RoomView.ts to pass `tsc --strict`. Should be functionally unchanged. A number of other files were touched to correct signatures. See: * element-hq/element-web#23542 * element-hq/element-web#23692 Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
This gets RoomView.ts to pass `tsc --strict`. Should be functionally unchanged. A number of other files were touched to correct signatures. See: * element-hq/element-web#23542 * element-hq/element-web#23692 Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
@t3chguy did a quick pulse-check of what's left in matrix-react-sdk right now:
Note that We also have some statistics on https://arewetsyet.bit.ovh/ but they're currently broken. |
|
I am making good progress with |
I never understood the so called "front end" programming, but it seems to me this is basically removal of https://en.wikipedia.org/wiki/Undefined_behavior and, as such, a technical debt. It is somewhat interesting how new generations of programmers believe they can "solve" the issues of having to controlling the flow by selectively ignoring it, but luckily, everyone learns it is unavoidable sooner or later. Though I cannot contribute here due to lack of js/ts expertise, I would like to cheer @t3chguy up, if you find any errors that cannot simply be solved by single line edits, you will probably be able to isolate meaningful bug reports for others to resolve, or even find specification omissions that will impact other projects. It's better if you do it, not the users filing bug reports, so your effort matters. |
Why?
The non-strict aspects of TypeScript allow for a lot of flexibility but also make it easy for errors to slip in, e.g. when there is no strong contract on null-ness.
What?
We’ll fix all existing strict-mode violations and enable all strict-mode checks to run on PRs. This will allow us to eliminate entire classes of errors through static code analysis.
Reference: https://www.typescriptlang.org/tsconfig#strict
Plan
matrix-js-sdk
matrix-react-sdk
strictNullChecks
inmatrix-react-sdk
vector-im/element-web#21967element-web
element-desktop
The text was updated successfully, but these errors were encountered: