-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ts: enable noImplicitOverride
#10737
Conversation
7177ea1
to
3710c7a
Compare
Doing this made me notice how many Worth a PR to remove those too? I'd be in favor. |
I think the |
How have you created these override annotations? Was there an automated way? |
@JonasHelming I didn't find an automated way to do it than ctrl-clicking on TS build errors and pasting the missing keywords. I see this as a small time investment to set this all up :) |
@colin-grant-work I think we could wholesale remove the For one for property injection to work something needs to write from the exterior into those fields. So far Inversify is doing it because it doesn't care about TS |
Many things are good practice that we nevertheless ask our tools to help us do :-). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I checked the cases where you've deleted injections, and they all look correct. One potential hanging comment, but if that's intentional, then it's good to go.
@colin-grant-work Agreed, just like what is being done in this PR :) The difference I would make is that And I don't like our uses of |
I don't disagree with you about the substance of your claim, but you may take my argument as a warning that a PR removing a lot of |
a08679c
to
687dd0f
Compare
@colin-grant-work @JonasHelming I added a new commit that cleans up the code base even more based on the redundancy of fields as highlighted by this new I noted the few niche constructor signature breakage in the changelog. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me 👍 CI is also successful (build, tests)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes are looking good to me as well 👍
This feature helps with quickly identifying overridden methods, as well as notify us of potential breakage whenever APIs are removed and some classes still try to override those missing methods.
687dd0f
to
2bd71fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add my endorsement as well. 👍
2bd71fe
to
8078fee
Compare
This feature helps with quickly identifying overridden methods, as well as notify us of potential breakage whenever APIs are removed and some classes still try to override those missing methods.
This feature helps with quickly identifying overridden methods, as well
as notify us of potential breakage whenever APIs are removed and some
classes still try to override those missing methods.
It seems like this change wouldn't even force dependents to update their TS version as the
override
keyword doesn't make its way into the generated.d.ts
files.How to test
Try to remove one of the
override
and build: it should fail.Review checklist
Reminder for reviewers