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

Remove extra not null assertions #202201

Merged
merged 3 commits into from
Jan 30, 2024
Merged

Conversation

mjbvz
Copy link
Contributor

@mjbvz mjbvz commented Jan 11, 2024

With microsoft/TypeScript#56908, TS should better preserve type refinements. To help test this out, I made a quick pass through our code to remove type assertions that are no longer needed

Most of these are not impacted by microsoft/TypeScript#56908 but removing them helps TS test changes like this and hopefully helps limit the spread of !

Not adding an eslint rule for now as it requires whole program intellisense, which is too slow for commit hooks

With microsoft/TypeScript#56908, TS should better preserve type refinements. To help test this out, I made a quick pass through our code to remove type assertions that are no longer needed

Most of these are not impacted by microsoft/TypeScript#56908 but removing them helps TS test changes like this

Not adding an eslint rule for now as it requires whole program intellisense, which is too slow for commit hooks
@VSCodeTriageBot VSCodeTriageBot added this to the December / January 2024 milestone Jan 11, 2024
@mjbvz mjbvz marked this pull request as draft January 11, 2024 01:37
@mjbvz mjbvz modified the milestones: December / January 2024, February 2024 Jan 23, 2024
@mjbvz mjbvz marked this pull request as ready for review January 30, 2024 22:43
@mjbvz mjbvz merged commit 31fbc3d into microsoft:main Jan 30, 2024
6 checks passed
Copy link

@KidiIT KidiIT left a comment

Choose a reason for hiding this comment

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

All reviewed and approved❤️🫶

@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
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.

None yet

4 participants