René's URL Explorer Experiment


Title: Properly instantiate inferred constraints in conditional types by ahejlsberg · Pull Request #42747 · microsoft/TypeScript · GitHub

Open Graph Title: Properly instantiate inferred constraints in conditional types by ahejlsberg · Pull Request #42747 · microsoft/TypeScript

X Title: Properly instantiate inferred constraints in conditional types by ahejlsberg · Pull Request #42747 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Properly instantiate inferred constraints in conditional types by ahejlsberg · Pull Request #42747 · microsoft/TypeScript

Open Graph Description: Fixes #42636.

X Description: Fixes #42636.

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

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:844557e6-03aa-c019-2873-128ec7e51202
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9780:34935:2A3C2:3D492:6A61F6B4
html-safe-noncecca7f76d2e94516f9c85cbc055e4990d80bdb62417bdf4ada54520d34e344ffa
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzgwOjM0OTM1OjJBM0MyOjNENDkyOjZBNjFGNkI0IiwidmlzaXRvcl9pZCI6IjMzNjc1MjM3NTA3ODc1NDQ3NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac91183865ef527f28a8db2eb4b56bde4ef0e048fdc8c10fe236e9707e47aaaf88
hovercard-subject-tagpull_request:571392775
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/42747/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/283fdb3673367bc291100ab1439b7cc5b246ca33f21d38e53f2044321a847bf2/microsoft/TypeScript/pull/42747
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/283fdb3673367bc291100ab1439b7cc5b246ca33f21d38e53f2044321a847bf2/microsoft/TypeScript/pull/42747
og:image:altFixes #42636.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameahejlsberg
hostnamegithub.com
expected-hostnamegithub.com
Noned88d9dd41cd32712dc23ff01ba406271c88c4858198430c255d591be42a1166f
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
releasea7f024eda6b8ce06d29c9276168423bfe05bafae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/42747#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F42747
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2F42747
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/42747
Reloadhttps://github.com/microsoft/TypeScript/pull/42747
Reloadhttps://github.com/microsoft/TypeScript/pull/42747
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k 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 21 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
ahejlsberghttps://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
fix42636https://github.com/microsoft/TypeScript/tree/fix42636
Conversationhttps://github.com/microsoft/TypeScript/pull/42747
Commits2 (2)https://github.com/microsoft/TypeScript/pull/42747/commits
Checkshttps://github.com/microsoft/TypeScript/pull/42747/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/42747/files
Properly instantiate inferred constraints in conditional typeshttps://github.com/microsoft/TypeScript/pull/42747#top
ahejlsberghttps://github.com/ahejlsberg
masterhttps://github.com/microsoft/TypeScript/tree/master
fix42636https://github.com/microsoft/TypeScript/tree/fix42636
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issue-805861193
#42636https://github.com/microsoft/TypeScript/issues/42636
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
ahejlsberghttps://github.com/ahejlsberg
February 10, 2021 10:47https://github.com/microsoft/TypeScript/pull/42747#commits-pushed-ef8e776
https://github.com/ahejlsberg
fix combined type mapper in getConditionalTypehttps://github.com/microsoft/TypeScript/pull/42747/commits/ef8e77619f26e87e9d14b6444ce3af43ab4d861f
ef8e776https://github.com/microsoft/TypeScript/pull/42747/commits/ef8e77619f26e87e9d14b6444ce3af43ab4d861f
https://github.com/ahejlsberg
Add regression testshttps://github.com/microsoft/TypeScript/pull/42747/commits/9f93e381bbabec0ae723156f86f4c992518c08eb
9f93e38https://github.com/microsoft/TypeScript/pull/42747/commits/9f93e381bbabec0ae723156f86f4c992518c08eb
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
ahejlsberghttps://github.com/ahejlsberg
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#event-4316911891
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#event-4316911953
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777026194
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
@typescript-bothttps://github.com/typescript-bot
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777026228
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
@ahejlsberghttps://github.com/ahejlsberg
9f93e38https://github.com/microsoft/TypeScript/commit/9f93e381bbabec0ae723156f86f4c992518c08eb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=95616
The results are in!https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777034246
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777026229
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
@ahejlsberghttps://github.com/ahejlsberg
9f93e38https://github.com/microsoft/TypeScript/commit/9f93e381bbabec0ae723156f86f4c992518c08eb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=95614
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777026230
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
@ahejlsberghttps://github.com/ahejlsberg
9f93e38https://github.com/microsoft/TypeScript/commit/9f93e381bbabec0ae723156f86f4c992518c08eb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=95617
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777026231
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
@ahejlsberghttps://github.com/ahejlsberg
9f93e38https://github.com/microsoft/TypeScript/commit/9f93e381bbabec0ae723156f86f4c992518c08eb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=95618
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777026233
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
@ahejlsberghttps://github.com/ahejlsberg
9f93e38https://github.com/microsoft/TypeScript/commit/9f93e381bbabec0ae723156f86f4c992518c08eb
herehttps://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_build/results?buildId=95615
The results are in!https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777053563
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777034246
@ahejlsberghttps://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021 https://github.com/microsoft/TypeScript/pull/42747#ref-pullrequest-805892634
🤖 User test baselines have changed for fix42636 typescript-bot/TypeScript#152 https://github.com/typescript-bot/TypeScript/pull/152
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777051220
PR with the baseline diff from masterhttps://github.com/typescript-bot/TypeScript/pull/152
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 10, 2021https://github.com/microsoft/TypeScript/pull/42747#issuecomment-777053563
@ahejlsberghttps://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/sandersn
sandersnhttps://github.com/sandersn
weswighamhttps://github.com/weswigham
March 4, 2021 17:32https://github.com/microsoft/TypeScript/pull/42747#event-4409377254
https://github.com/weswigham
weswighamhttps://github.com/weswigham
Mar 4, 2021 https://github.com/microsoft/TypeScript/pull/42747#pullrequestreview-604553561
View reviewed changes https://github.com/microsoft/TypeScript/pull/42747/files/9f93e381bbabec0ae723156f86f4c992518c08eb
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
408c804https://github.com/microsoft/TypeScript/commit/408c804103d5b4f3ce97722190eab9d428740d80
Mar 5, 2021https://github.com/microsoft/TypeScript/pull/42747#event-4414114809
https://github.com/ahejlsberg
ahejlsberghttps://github.com/ahejlsberg
March 5, 2021 15:26https://github.com/microsoft/TypeScript/pull/42747#event-4414115383
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 9, 2024 https://github.com/microsoft/TypeScript/pull/42747#ref-pullrequest-2127979394
Instantiate earlier inferred constraints in conditional types #57362 https://github.com/microsoft/TypeScript/pull/57362
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 21, 2025https://github.com/microsoft/TypeScript/pull/42747#event-20417374555
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%2F42747
https://github.com/weswigham
weswigham https://github.com/weswigham
https://github.com/microsoft/TypeScript/pull/42747/files/9f93e381bbabec0ae723156f86f4c992518c08eb
https://github.com/ahejlsberg
ahejlsberg https://github.com/ahejlsberg
Author: Team https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Author%3A%20Team%22
For Milestone Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Milestone%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
Generic with type inference in conditional type not evaluated into definitive type https://github.com/microsoft/TypeScript/issues/42636
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/42747
https://github.com/ahejlsberg
https://github.com/typescript-bot
https://github.com/weswigham
https://github.com/sandersn
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.