René's URL Explorer Experiment


Title: Narrow unions to the narrowest constituent on assignment by Zzzen · Pull Request #47975 · microsoft/TypeScript · GitHub

Open Graph Title: Narrow unions to the narrowest constituent on assignment by Zzzen · Pull Request #47975 · microsoft/TypeScript

X Title: Narrow unions to the narrowest constituent on assignment by Zzzen · Pull Request #47975 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Narrow unions to the narrowest constituent on assignment by Zzzen · Pull Request #47975 · microsoft/TypeScript

Open Graph Description: Fixes #47731

X Description: Fixes #47731

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

X: @github

direct link

Domain: github.com

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:53b0d362-d6b5-3f37-d3d7-2dc33e55f118
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE704:2DC8D1:53B4D31:76B9958:6A4FF00E
html-safe-noncec8a368bdef324c80c34b550e34954efaa2577058b4cda06cbaef98d706d086e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzA0OjJEQzhEMTo1M0I0RDMxOjc2Qjk5NTg6NkE0RkYwMEUiLCJ2aXNpdG9yX2lkIjoiMTM5MTQyNzQ2MTMxMzQ1ODE5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac48434b59009f87f502ec460d21b05979e009dd2c103ef71b1957ace85f8c9aa8
hovercard-subject-tagpull_request:858813883
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/47975/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/030ac783523741ce02c75076e372e3b51a3679e9838e1b872e4127e54f6390c7/microsoft/TypeScript/pull/47975
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/030ac783523741ce02c75076e372e3b51a3679e9838e1b872e4127e54f6390c7/microsoft/TypeScript/pull/47975
og:image:altFixes #47731
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameZzzen
hostnamegithub.com
expected-hostnamegithub.com
None19b98c3d9767bb8a56238a89ff8401d1cbdf3bc5c353799aacf49fe6c76b4b7c
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
releasef7e270be010aa4de2871991025fbb97f3afe2bcb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/47975#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47975
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F47975
Sign up https://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/47975
Reloadhttps://github.com/microsoft/TypeScript/pull/47975
Reloadhttps://github.com/microsoft/TypeScript/pull/47975
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.5k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 33 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Zzzenhttps://github.com/Zzzen
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Zzzen:narrow-on-assignmenthttps://github.com/Zzzen/TypeScript/tree/narrow-on-assignment
Conversationhttps://github.com/microsoft/TypeScript/pull/47975
Commits1 (1)https://github.com/microsoft/TypeScript/pull/47975/commits
Checkshttps://github.com/microsoft/TypeScript/pull/47975/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/47975/files
Narrow unions to the narrowest constituent on assignmenthttps://github.com/microsoft/TypeScript/pull/47975#top
Zzzenhttps://github.com/Zzzen
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Zzzen:narrow-on-assignmenthttps://github.com/Zzzen/TypeScript/tree/narrow-on-assignment
https://github.com/Zzzen
Zzzenhttps://github.com/Zzzen
Feb 20, 2022https://github.com/microsoft/TypeScript/pull/47975#issue-1145009424
#47731https://github.com/microsoft/TypeScript/issues/47731
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/Zzzen
Narrow unions to the narrowest constituent on assignmenthttps://github.com/microsoft/TypeScript/pull/47975/commits/ead264af96d93385aff9296815cb5b36431613e5
ead264ahttps://github.com/microsoft/TypeScript/pull/47975/commits/ead264af96d93385aff9296815cb5b36431613e5
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
Feb 20, 2022https://github.com/microsoft/TypeScript/pull/47975#event-6107191640
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Feb 22, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048263861
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 22, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048263903
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
@RyanCavanaughhttps://github.com/RyanCavanaugh
ead264ahttps://github.com/microsoft/TypeScript/commit/ead264af96d93385aff9296815cb5b36431613e5
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=120689
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 22, 2022 https://github.com/microsoft/TypeScript/pull/47975#ref-pullrequest-1147456036
🤖 User test baselines have changed for narrow-on-assignment typescript-bot/TypeScript#225 https://github.com/typescript-bot/TypeScript/pull/225
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 22, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048294658
PR with the baseline diff from masterhttps://github.com/typescript-bot/TypeScript/pull/225
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Feb 23, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048341195
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 23, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048341222
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
@RyanCavanaughhttps://github.com/RyanCavanaugh
ead264ahttps://github.com/microsoft/TypeScript/commit/ead264af96d93385aff9296815cb5b36431613e5
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=120702
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Feb 23, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048413773
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 23, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048414018
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
@RyanCavanaughhttps://github.com/RyanCavanaugh
ead264ahttps://github.com/microsoft/TypeScript/commit/ead264af96d93385aff9296815cb5b36431613e5
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=120713
The results are in!https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048427625
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 23, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1048427625
@RyanCavanaughhttps://github.com/RyanCavanaugh
Download Benchmarkhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/120713/artifacts?artifactName=benchmark&fileId=543F8D8C8436DFD38349665D01C6136E8CA202B06B20F67C8436205F7572A39D01&fileName=linux.benchmark
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Feb 23, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1049069125
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/Zzzen
Zzzenhttps://github.com/Zzzen
Feb 24, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1049851173
https://user-images.githubusercontent.com/6630042/155530976-1e3e17f6-3006-4b9d-bae2-93a226fdfcd7.png
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/Zzzen
Zzzenhttps://github.com/Zzzen
Feb 24, 2022https://github.com/microsoft/TypeScript/pull/47975#event-6132126652
https://github.com/matthargett
matthargetthttps://github.com/matthargett
Jun 17, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1158496212
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/Zzzen
Zzzenhttps://github.com/Zzzen
Jun 29, 2022https://github.com/microsoft/TypeScript/pull/47975#issuecomment-1169900626
@RyanCavanaughhttps://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/47975#event-20417501089
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%2F47975
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
Narrow subtype-reduction-prone unions to their narrowest constituent https://github.com/microsoft/TypeScript/issues/47731
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/47975
https://github.com/Zzzen
https://github.com/RyanCavanaugh
https://github.com/typescript-bot
https://github.com/matthargett
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.