Skip to content

Remove type assertions for createInstance calls on generics#234623

Merged
mjbvz merged 4 commits intomicrosoft:mainfrom
mjbvz:legislative-lemur
Nov 26, 2024
Merged

Remove type assertions for createInstance calls on generics#234623
mjbvz merged 4 commits intomicrosoft:mainfrom
mjbvz:legislative-lemur

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Nov 25, 2024

These can hide typing errors

connor4312
connor4312 previously approved these changes Nov 25, 2024
Copy link
Member

@connor4312 connor4312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this is a syntax I tried a long time ago and it didn't work, is it new? 🤔

@mjbvz mjbvz enabled auto-merge (squash) November 25, 2024 23:23
@mjbvz
Copy link
Collaborator Author

mjbvz commented Nov 25, 2024

@connor4312 It definitely didn't exist when we first converted the codebase to be strict null checked. That's when most of these assertions got introduced. But I think it's been around a few years and this point although I can't say exactly when it came in

Missed fixing one revealed typing error
@joaomoreno
Copy link
Member

@microsoft-github-policy-service rerun

@mjbvz mjbvz merged commit 4f217d9 into microsoft:main Nov 26, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants