René's URL Explorer Experiment


Title: Discard types that reduce to `never` before discriminating by discriminable items by Andarist · Pull Request #62275 · microsoft/TypeScript · GitHub

Open Graph Title: Discard types that reduce to `never` before discriminating by discriminable items by Andarist · Pull Request #62275 · microsoft/TypeScript

X Title: Discard types that reduce to `never` before discriminating by discriminable items by Andarist · Pull Request #62275 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Discard types that reduce to `never` before discriminating by discriminable items by Andarist · Pull Request #62275 · microsoft/TypeScript

Open Graph Description: fixes #62256

X Description: fixes #62256

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

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:b00b4511-3e20-8fa4-4a46-c88fbc6b08ab
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA988:322E35:333EE95:4802033:6A4F7FD7
html-safe-nonceed734d71305c4728a5106fee445b1c670cfbaa0dd67ec83b440a69cf9da71f0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTg4OjMyMkUzNTozMzNFRTk1OjQ4MDIwMzM6NkE0RjdGRDciLCJ2aXNpdG9yX2lkIjoiMzYyMjc1MDg4OTU2NTk3ODU4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac96be16de472d33725aa98bcef5fed6101b4d63770efb02d4f1225df2b40a2711
hovercard-subject-tagpull_request:2737056260
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/62275/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/97d60b6f5e9787f3faeeb089eb98e8da247b11cd001cf2bca234d36483b7db13/microsoft/TypeScript/pull/62275
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/97d60b6f5e9787f3faeeb089eb98e8da247b11cd001cf2bca234d36483b7db13/microsoft/TypeScript/pull/62275
og:image:altfixes #62256
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndarist
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
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
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/62275#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F62275
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%2F62275
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/62275
Reloadhttps://github.com/microsoft/TypeScript/pull/62275
Reloadhttps://github.com/microsoft/TypeScript/pull/62275
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
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
RyanCavanaughhttps://github.com/RyanCavanaugh
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:fix/discriminated-unions-with-never-reduced-typeshttps://github.com/Andarist/TypeScript/tree/fix/discriminated-unions-with-never-reduced-types
Conversationhttps://github.com/microsoft/TypeScript/pull/62275
Commits1 (1)https://github.com/microsoft/TypeScript/pull/62275/commits
Checkshttps://github.com/microsoft/TypeScript/pull/62275/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/62275/files
Discard types that reduce to never before discriminating by discriminable itemshttps://github.com/microsoft/TypeScript/pull/62275#top
RyanCavanaughhttps://github.com/RyanCavanaugh
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:fix/discriminated-unions-with-never-reduced-typeshttps://github.com/Andarist/TypeScript/tree/fix/discriminated-unions-with-never-reduced-types
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Aug 11, 2025https://github.com/microsoft/TypeScript/pull/62275#issue-3311826379
#62256https://github.com/microsoft/TypeScript/issues/62256
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/Andarist
Discard types that reduce to never before discriminating by discrim…https://github.com/microsoft/TypeScript/pull/62275/commits/6f6ab2e1594891e207cb401ca58db5439b90c33c
6f6ab2ehttps://github.com/microsoft/TypeScript/pull/62275/commits/6f6ab2e1594891e207cb401ca58db5439b90c33c
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
August 11, 2025 22:20https://github.com/microsoft/TypeScript/pull/62275#event-19099055204
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Aug 11, 2025https://github.com/microsoft/TypeScript/pull/62275#event-19099056685
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Aug 11, 2025https://github.com/microsoft/TypeScript/pull/62275#event-19099056691
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Aug 11, 2025https://github.com/microsoft/TypeScript/pull/62275#event-19099055943
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Aug 11, 2025 https://github.com/microsoft/TypeScript/pull/62275#pullrequestreview-3107941871
View reviewed changes https://github.com/microsoft/TypeScript/pull/62275/files/6f6ab2e1594891e207cb401ca58db5439b90c33c
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/TypeScript/pull/62275#pullrequestreview-3107941871
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
tests/cases/compiler/contextuallyTypedByDiscriminableUnion2.tshttps://github.com/microsoft/TypeScript/pull/62275/files/6f6ab2e1594891e207cb401ca58db5439b90c33c#diff-d96b60876a5c371a38ba3df7874bab399094d5a30a4953bfd7ce318a881ae83e
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Aug 11, 2025https://github.com/microsoft/TypeScript/pull/62275#discussion_r2268139275
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
Copilothttps://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review
tests/cases/compiler/contextuallyTypedByDiscriminableUnion2.tshttps://github.com/microsoft/TypeScript/pull/62275/files/6f6ab2e1594891e207cb401ca58db5439b90c33c#diff-d96b60876a5c371a38ba3df7874bab399094d5a30a4953bfd7ce318a881ae83e
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Aug 11, 2025https://github.com/microsoft/TypeScript/pull/62275#discussion_r2268139285
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
Copilothttps://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180849412
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180849676
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=165861
✅ Resultshttps://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180862359
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=165864
✅ Resultshttps://github.com/microsoft/TypeScript/pull/62275#issuecomment-3181127233
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=165863
✅ Resultshttps://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180925000
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=165862
✅ Resultshttps://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180920267
✅ Startedhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=165865
👀 Resultshttps://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180987142
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180852436
#61828https://github.com/microsoft/TypeScript/pull/61828
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180862359
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
@jakebaileyhttps://github.com/jakebailey
an installable tgzhttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/165861/artifacts?artifactName=tgz&fileId=355D6E9E3DA1674AADE9A5F08A00BA56F5D84B5A5D5EC83FEB4C572185313D8102&fileName=/typescript-6.0.0-insiders.20250812.tgz
for this buildhttps://www.typescriptlang.org/play?ts=6.0.0-pr-62275-3
npmhttps://www.npmjs.com/package/@typescript-deploys/pr-build/v/6.0.0-pr-62275-3
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180920267
@jakebaileyhttps://github.com/jakebailey
You can check the log herehttps://typescript.visualstudio.com/TypeScript/_build/index?buildId=165862&_a=summary
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180925000
@jakebaileyhttps://github.com/jakebailey
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3180987142
@jakebaileyhttps://github.com/jakebailey
Download Benchmarkshttps://typescript.visualstudio.com/TypeScript/_build/results?buildId=165865&view=artifacts
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Aug 12, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3181127233
@jakebaileyhttps://github.com/jakebailey
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
ahejlsberghttps://github.com/ahejlsberg
August 20, 2025 23:30https://github.com/microsoft/TypeScript/pull/62275#event-19255582871
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
Aug 20, 2025https://github.com/microsoft/TypeScript/pull/62275#issuecomment-3208405622
@ahejlsberghttps://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
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
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
Aug 20, 2025https://github.com/microsoft/TypeScript/pull/62275#event-19255588856
https://github.com/jakebailey
jakebaileyhttps://github.com/jakebailey
Jan 12, 2026 https://github.com/microsoft/TypeScript/pull/62275#pullrequestreview-3652990182
View reviewed changes https://github.com/microsoft/TypeScript/pull/62275/files/6f6ab2e1594891e207cb401ca58db5439b90c33c
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Jan 12, 2026https://github.com/microsoft/TypeScript/pull/62275#event-22001301653
https://github.com/RyanCavanaugh
RyanCavanaughhttps://github.com/RyanCavanaugh
merge queuehttps://github.com/microsoft/TypeScript/queue/main
Jan 13, 2026https://github.com/microsoft/TypeScript/pull/62275#event-22022736191
7bb5ba3https://github.com/microsoft/TypeScript/commit/7bb5ba3de69d92514b518080c702cd8fbfe7c527
Jan 13, 2026https://github.com/microsoft/TypeScript/pull/62275#event-22022964374
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/apps/github-project-automation
github-project-automationhttps://github.com/apps/github-project-automation
PR Backloghttps://github.com/orgs/microsoft/projects/1252
Jan 13, 2026https://github.com/microsoft/TypeScript/pull/62275#event-22022965729
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Feb 11, 2026 https://github.com/microsoft/TypeScript/pull/62275#ref-pullrequest-3924098122
Port #62275: Discard types that reduce to never before discriminating by discriminable items microsoft/typescript-go#2749 https://github.com/microsoft/typescript-go/pull/2749
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F62275
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
https://github.com/microsoft/TypeScript/pull/62275/files/6f6ab2e1594891e207cb401ca58db5439b90c33c
https://github.com/jakebailey
jakebailey https://github.com/jakebailey
https://github.com/microsoft/TypeScript/pull/62275/files/6f6ab2e1594891e207cb401ca58db5439b90c33c
https://github.com/ahejlsberg
ahejlsberg https://github.com/ahejlsberg
For Backlog Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Backlog%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
Typescript 5.9 can no longer derive this type, becomes 'any' instead https://github.com/microsoft/TypeScript/issues/62256
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/62275
https://github.com/Andarist
https://github.com/jakebailey
https://github.com/typescript-bot
https://github.com/RyanCavanaugh
https://github.com/apps/copilot-pull-request-reviewer
https://github.com/andrewbranch
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.