René's URL Explorer Experiment


Title: Use NonNullable in more scenarios by ahejlsberg · Pull Request #49330 · microsoft/TypeScript · GitHub

Open Graph Title: Use NonNullable in more scenarios by ahejlsberg · Pull Request #49330 · microsoft/TypeScript

X Title: Use NonNullable in more scenarios by ahejlsberg · Pull Request #49330 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Use NonNullable in more scenarios by ahejlsberg · Pull Request #49330 · microsoft/TypeScript

Open Graph Description: This PR builds on #49119 to use NonNullable<T> in more scenarios in --strictNullChecks mode. The PR also cleans up some compiler internals. Instantiations of NonNullable<T> are now onl...

X Description: This PR builds on #49119 to use NonNullable&lt;T&gt; in more scenarios in --strictNullChecks mode. The PR also cleans up some compiler internals. Instantiations of NonNullable&lt;T&...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/49330

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:8bdcf8aa-ac86-524e-b177-9cd5a70dc226
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB84:24A0A:1B1452:21FC5F:6B00F5F5
html-safe-nonce3eaba2a93776e2313ecd22d4a3c68b58294020e2d12fe95ded124ffc09f5ef36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjg0OjI0QTBBOjFCMTQ1MjoyMUZDNUY6NkIwMEY1RjUiLCJ2aXNpdG9yX2lkIjoiMjM2NTM0OTM0NDgwODMzNDgzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd2ebcfdf08bba9f9c0a817c898e7b350b2d5cdc5e69b713ced205d837249bfbb
hovercard-subject-tagpull_request:952461699
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/49330/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/056d374cd91d318736cb9a5333ee843273a10210233cb7e703d61a21f509c777/microsoft/TypeScript/pull/49330
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/056d374cd91d318736cb9a5333ee843273a10210233cb7e703d61a21f509c777/microsoft/TypeScript/pull/49330
og:image:altThis PR builds on #49119 to use NonNullable<T> in more scenarios in --strictNullChecks mode. The PR also cleans up some compiler internals. Instantiations of NonNullable<T> are now onl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-cache
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/49330#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F49330
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F49330
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/49330
Reloadhttps://github.com/microsoft/TypeScript/pull/49330
Reloadhttps://github.com/microsoft/TypeScript/pull/49330
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
mainhttps://github.com/microsoft/TypeScript/tree/main
nullableImprovementshttps://github.com/microsoft/TypeScript/tree/nullableImprovements
Conversationhttps://github.com/microsoft/TypeScript/pull/49330
Commits4 (4)https://github.com/microsoft/TypeScript/pull/49330/commits
Checkshttps://github.com/microsoft/TypeScript/pull/49330/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/49330/files
Use NonNullable in more scenarioshttps://github.com/microsoft/TypeScript/pull/49330#top
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
mainhttps://github.com/microsoft/TypeScript/tree/main
nullableImprovementshttps://github.com/microsoft/TypeScript/tree/nullableImprovements
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
May 31, 2022https://github.com/microsoft/TypeScript/pull/49330#issue-1254447840
#49119https://github.com/microsoft/TypeScript/pull/49119
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/49330
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
May 31, 2022 09:15https://github.com/microsoft/TypeScript/pull/49330#commits-pushed-81357fe
https://github.com/ahejlsberg
Remove getFalsyFlags and improve getNonNullableTypehttps://github.com/microsoft/TypeScript/pull/49330/commits/81357fea9b53e76c4b263f9ec6f9f193d649257e
81357fehttps://github.com/microsoft/TypeScript/pull/49330/commits/81357fea9b53e76c4b263f9ec6f9f193d649257e
https://github.com/ahejlsberg
Apply getNonNullableType to left operand of || operatorhttps://github.com/microsoft/TypeScript/pull/49330/commits/c2221e4eb7929bee74a746fbf4a058718dd9e377
c2221e4https://github.com/microsoft/TypeScript/pull/49330/commits/c2221e4eb7929bee74a746fbf4a058718dd9e377
https://github.com/ahejlsberg
Accept new baselineshttps://github.com/microsoft/TypeScript/pull/49330/commits/d89b5427d0b313d8dcedbd59532e07721217ed09
d89b542https://github.com/microsoft/TypeScript/pull/49330/commits/d89b5427d0b313d8dcedbd59532e07721217ed09
https://github.com/ahejlsberg
Add testshttps://github.com/microsoft/TypeScript/pull/49330/commits/c21d3a06390376d16a303de162a46ae1b0bd8296
c21d3a0https://github.com/microsoft/TypeScript/pull/49330/commits/c21d3a06390376d16a303de162a46ae1b0bd8296
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
May 31, 2022https://github.com/microsoft/TypeScript/pull/49330#event-6713335112
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
May 31, 2022https://github.com/microsoft/TypeScript/pull/49330#event-6713335186
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Wesley Wigham (weswigham)https://github.com/weswigham
May 31, 2022 21:46https://github.com/microsoft/TypeScript/pull/49330#event-6713337796
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
May 31, 2022 https://github.com/microsoft/TypeScript/pull/49330#pullrequestreview-991223686
View reviewed changes https://github.com/microsoft/TypeScript/pull/49330/files/c21d3a06390376d16a303de162a46ae1b0bd8296
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
May 31, 2022 https://github.com/microsoft/TypeScript/pull/49330#pullrequestreview-991252720
View reviewed changes https://github.com/microsoft/TypeScript/pull/49330/files/c21d3a06390376d16a303de162a46ae1b0bd8296
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
3cdb808https://github.com/microsoft/TypeScript/commit/3cdb8081f7a66e32fc66ee41233b887d4adacb89
Jun 1, 2022https://github.com/microsoft/TypeScript/pull/49330#event-6713842740
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
June 1, 2022 00:05https://github.com/microsoft/TypeScript/pull/49330#event-6713842849
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Jun 3, 2022https://github.com/microsoft/TypeScript/pull/49330#issuecomment-1145473780
https://user-images.githubusercontent.com/972891/171762459-ec90727e-59c6-4552-8210-fef8b627a5b4.png
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/49330
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Jun 3, 2022 https://github.com/microsoft/TypeScript/pull/49330#ref-commit-ef4f419
https://github.com/DanielRosenwasser
Revert "Use NonNullable in more scenarios (https://github.com/microsoft/TypeScript/commit/ef4f419e96df136873e82120aa6dc130d2d38778
#49330https://github.com/microsoft/TypeScript/pull/49330
)"https://github.com/microsoft/TypeScript/commit/ef4f419e96df136873e82120aa6dc130d2d38778
ef4f419https://github.com/microsoft/TypeScript/commit/ef4f419e96df136873e82120aa6dc130d2d38778
3cdb808https://github.com/microsoft/TypeScript/commit/3cdb8081f7a66e32fc66ee41233b887d4adacb89
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Jun 3, 2022 https://github.com/microsoft/TypeScript/pull/49330#ref-pullrequest-1260293877
Revert "Use NonNullable in more scenarios" #49381 https://github.com/microsoft/TypeScript/pull/49381
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Jun 9, 2022 https://github.com/microsoft/TypeScript/pull/49330#ref-commit-7930404
https://github.com/sandersn
Update lodash types for TS 4.8https://github.com/DefinitelyTyped/DefinitelyTyped/commit/79304047c669876d064ead634d9a8532edbe6970
7930404https://github.com/DefinitelyTyped/DefinitelyTyped/commit/79304047c669876d064ead634d9a8532edbe6970
microsoft/TypeScript#49330https://github.com/microsoft/TypeScript/pull/49330
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Jun 9, 2022 https://github.com/microsoft/TypeScript/pull/49330#ref-pullrequest-1266760262
Update lodash tests for _.defaults for TS 4.8 DefinitelyTyped/DefinitelyTyped#60747 https://github.com/DefinitelyTyped/DefinitelyTyped/pull/60747
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Jun 10, 2022 https://github.com/microsoft/TypeScript/pull/49330#ref-commit-4f396ad
https://github.com/sandersn
Update lodash types for TS 4.8 (https://github.com/DefinitelyTyped/DefinitelyTyped/commit/4f396adf6ea5af4b804acbfc892461f7879769de
#60747https://github.com/DefinitelyTyped/DefinitelyTyped/pull/60747
)https://github.com/DefinitelyTyped/DefinitelyTyped/commit/4f396adf6ea5af4b804acbfc892461f7879769de
4f396adhttps://github.com/DefinitelyTyped/DefinitelyTyped/commit/4f396adf6ea5af4b804acbfc892461f7879769de
microsoft/TypeScript#49330https://github.com/microsoft/TypeScript/pull/49330
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Jun 21, 2022 https://github.com/microsoft/TypeScript/pull/49330#ref-issue-1279239857
Investigate 4.8 perf regression from "Use NonNullable in more scenarios" #49622 https://github.com/microsoft/TypeScript/issues/49622
Crash in narrowing when using for-in #49942 https://github.com/microsoft/TypeScript/issues/49942
Ensure common supertype retains nullability in inference #49981 https://github.com/microsoft/TypeScript/pull/49981
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/49330#event-20417548941
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F49330
https://github.com/weswigham
Wesley Wigham (weswigham) https://github.com/weswigham
https://github.com/microsoft/TypeScript/pull/49330/files/c21d3a06390376d16a303de162a46ae1b0bd8296
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) https://github.com/RyanCavanaugh
https://github.com/microsoft/TypeScript/pull/49330/files/c21d3a06390376d16a303de162a46ae1b0bd8296
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser) https://github.com/DanielRosenwasser
https://github.com/sandersn
Nathan Shively-Sanders (sandersn) https://github.com/sandersn
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/49330
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg) https://github.com/ahejlsberg
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/49330
https://github.com/ahejlsberg
https://github.com/DanielRosenwasser
https://github.com/weswigham
https://github.com/RyanCavanaugh
https://github.com/typescript-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.