René's URL Explorer Experiment


Title: Add assignability rules for when the target is a conditional type by weswigham · Pull Request #27932 · microsoft/TypeScript · GitHub

Open Graph Title: Add assignability rules for when the target is a conditional type by weswigham · Pull Request #27932 · microsoft/TypeScript

X Title: Add assignability rules for when the target is a conditional type by weswigham · Pull Request #27932 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Add assignability rules for when the target is a conditional type by weswigham · Pull Request #27932 · microsoft/TypeScript

Open Graph Description: Inspired by looking into #27014 Fixes #26933 Steals from #27589 This adds assignability rules for relating types when the target is a conditional type. We only check for conditional type target ass...

X Description: Inspired by looking into #27014 Fixes #26933 Steals from #27589 This adds assignability rules for relating types when the target is a conditional type. We only check for conditional type target ass...

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

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:d9d65e99-460c-f17a-e8e7-e52c88fc8f4d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB4A4:3E4205:110DBCE:16D2221:6B011B81
html-safe-nonce0ce727360802cb7155879b8b53e71b287b0fae348e976497141cf03a712a1ee9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEE0OjNFNDIwNToxMTBEQkNFOjE2RDIyMjE6NkIwMTFCODEiLCJ2aXNpdG9yX2lkIjoiODkzNTU5NjgwNDQ3NzYyMzE2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0b57041371fbc8aa97c9b4caaba4c85d9def76f31fe3e6747dadacbf795dc0e7
hovercard-subject-tagpull_request:223447520
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/27932/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1b5872595db06c98286a1601adb963b2a12e62db15615d0b90cac73459465567/microsoft/TypeScript/pull/27932
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b5872595db06c98286a1601adb963b2a12e62db15615d0b90cac73459465567/microsoft/TypeScript/pull/27932
og:image:altInspired by looking into #27014 Fixes #26933 Steals from #27589 This adds assignability rules for relating types when the target is a conditional type. We only check for conditional type target ass...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameweswigham
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/27932#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F27932
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%2F27932
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/27932
Reloadhttps://github.com/microsoft/TypeScript/pull/27932
Reloadhttps://github.com/microsoft/TypeScript/pull/27932
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests310 (310)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
Wesley Wigham (weswigham)https://github.com/weswigham
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
weswigham:infer-conditional-class-thishttps://github.com/weswigham/TypeScript/tree/infer-conditional-class-this
Conversationhttps://github.com/microsoft/TypeScript/pull/27932
Commits4 (4)https://github.com/microsoft/TypeScript/pull/27932/commits
Checkshttps://github.com/microsoft/TypeScript/pull/27932/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/27932/files
Add assignability rules for when the target is a conditional typehttps://github.com/microsoft/TypeScript/pull/27932#top
Wesley Wigham (weswigham)https://github.com/weswigham
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
weswigham:infer-conditional-class-thishttps://github.com/weswigham/TypeScript/tree/infer-conditional-class-this
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Oct 17, 2018https://github.com/microsoft/TypeScript/pull/27932#issue-370868491
#27014https://github.com/microsoft/TypeScript/issues/27014
#26933https://github.com/microsoft/TypeScript/issues/26933
#27589https://github.com/microsoft/TypeScript/pull/27589
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27932
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
October 17, 2018 02:08https://github.com/microsoft/TypeScript/pull/27932#event-1908360515
Wesley Wigham (weswigham)https://github.com/weswigham
October 16, 2018 19:09https://github.com/microsoft/TypeScript/pull/27932#commits-pushed-05ac44f
https://github.com/weswigham
Add assignability rules for when the target is a conditional typehttps://github.com/microsoft/TypeScript/pull/27932/commits/05ac44f26cfcc1e4415c25d446e858ed65bd6c31
05ac44fhttps://github.com/microsoft/TypeScript/pull/27932/commits/05ac44f26cfcc1e4415c25d446e858ed65bd6c31
https://github.com/weswigham
Slightly improve test, add comment explaining situationhttps://github.com/microsoft/TypeScript/pull/27932/commits/17e215c3caa7d3166928ccb5591d356c02562029
17e215chttps://github.com/microsoft/TypeScript/pull/27932/commits/17e215c3caa7d3166928ccb5591d356c02562029
https://github.com/weswigham
Err on the safe sidehttps://github.com/microsoft/TypeScript/pull/27932/commits/8577f7ddfc02f47e3c1d3868b779497d2403513b
8577f7dhttps://github.com/microsoft/TypeScript/pull/27932/commits/8577f7ddfc02f47e3c1d3868b779497d2403513b
https://github.com/weswigham
Stronger guarantees on edge case handling, stolen tests fromhttps://github.com/microsoft/TypeScript/pull/27932/commits/f590103e3c5f8c1b30980edd9cc210b9bd4ce1be
microsof…https://github.com/microsoft/TypeScript/pull/27589
f590103https://github.com/microsoft/TypeScript/pull/27932/commits/f590103e3c5f8c1b30980edd9cc210b9bd4ce1be
…t#27589https://github.com/microsoft/TypeScript/pull/27589
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
force-pushedhttps://github.com/microsoft/TypeScript/compare/7652906dbdc08a39895d8a1e23b35d8f5d54f56f..f590103e3c5f8c1b30980edd9cc210b9bd4ce1be
7652906https://github.com/microsoft/TypeScript/commit/7652906dbdc08a39895d8a1e23b35d8f5d54f56f
f590103https://github.com/microsoft/TypeScript/commit/f590103e3c5f8c1b30980edd9cc210b9bd4ce1be
Compare https://github.com/microsoft/TypeScript/compare/7652906dbdc08a39895d8a1e23b35d8f5d54f56f..f590103e3c5f8c1b30980edd9cc210b9bd4ce1be
October 17, 2018 02:10https://github.com/microsoft/TypeScript/pull/27932#event-1908362396
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
Oct 23, 2018https://github.com/microsoft/TypeScript/pull/27932#issuecomment-432036232
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27932
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27932
Nested Exclude has unexpected behavior #28824 https://github.com/microsoft/TypeScript/issues/28824
Type x is not assignable to {conditional return type y} #28917 https://github.com/microsoft/TypeScript/issues/28917
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Jan 24, 2019 https://github.com/microsoft/TypeScript/pull/27932#ref-pullrequest-367519348
Add rule that a type is assignable to A extends B ? C : D if it is assignable to both C and D. #27589 https://github.com/microsoft/TypeScript/pull/27589
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
Jan 24, 2019https://github.com/microsoft/TypeScript/pull/27932#event-2095906021
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Mar 29, 2019 https://github.com/microsoft/TypeScript/pull/27932#ref-pullrequest-426761912
Add missing relationship allowing a type to be assignable to a conditional when assignable to both branches #30639 https://github.com/microsoft/TypeScript/pull/30639
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Apr 30, 2019https://github.com/microsoft/TypeScript/pull/27932#event-2309909723
https://github.com/jablko
Jack Bates (jablko)https://github.com/jablko
Dec 18, 2019 https://github.com/microsoft/TypeScript/pull/27932#ref-pullrequest-539382702
Type comparison when conditional type is target #35741 https://github.com/microsoft/TypeScript/pull/35741
https://github.com/dgreensp
David Greenspan (dgreensp)https://github.com/dgreensp
Jan 8, 2020https://github.com/microsoft/TypeScript/pull/27932#issuecomment-572275358
#26945https://github.com/microsoft/TypeScript/issues/26945
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27932
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Experiment https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3AExperiment
Feb 1, 2020https://github.com/microsoft/TypeScript/pull/27932#event-2998900039
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
Feb 1, 2020https://github.com/microsoft/TypeScript/pull/27932#event-2998900146
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Jul 8, 2020 https://github.com/microsoft/TypeScript/pull/27932#ref-issue-382534540
Props requiring casting on complex type (and defaultProps not settable) #28614 https://github.com/microsoft/TypeScript/issues/28614
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Sep 25, 2020 https://github.com/microsoft/TypeScript/pull/27932#ref-issue-708013301
(Indirect) inference of array element type in callback function type does not work #40743 https://github.com/microsoft/TypeScript/issues/40743
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
Oct 22, 2020 https://github.com/microsoft/TypeScript/pull/27932#ref-issue-371926132
Can't use type aliases or conditional types resolving to Promise for async/await return types #27987 https://github.com/microsoft/TypeScript/issues/27987
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
May 24, 2022https://github.com/microsoft/TypeScript/pull/27932#issuecomment-1136486809
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27932
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
May 24, 2022https://github.com/microsoft/TypeScript/pull/27932#event-6672691633
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Sep 20, 2022 https://github.com/microsoft/TypeScript/pull/27932#ref-issue-1376937305
Class method with conditional return type cannot return types common to both conditional branches when the class also has an interface #50822 https://github.com/microsoft/TypeScript/issues/50822
https://github.com/jcalz
Joe Calzaretta (jcalz)https://github.com/jcalz
Sep 2, 2025 https://github.com/microsoft/TypeScript/pull/27932#ref-issue-3371687215
Key in mapped type not traversed when there's a something-with-generics extends clause in it #62370 https://github.com/microsoft/TypeScript/issues/62370
https://github.com/microsoft
Microsoft (microsoft)https://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/27932#event-20415825047
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%2F27932
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg) https://github.com/ahejlsberg
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) https://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27932
https://github.com/weswigham
Wesley Wigham (weswigham) https://github.com/weswigham
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
Experiment https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3AExperiment
T should be assignable to A extends B ? C : D if it is assignable to both C and D https://github.com/microsoft/TypeScript/issues/26933
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/27932
https://github.com/weswigham
https://github.com/jack-williams
https://github.com/dgreensp
https://github.com/sandersn
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.