René's URL Explorer Experiment


Title: Add tests for inferring contextual generic mapped types by Andarist · Pull Request #52709 · microsoft/TypeScript · GitHub

Open Graph Title: Add tests for inferring contextual generic mapped types by Andarist · Pull Request #52709 · microsoft/TypeScript

X Title: Add tests for inferring contextual generic mapped types by Andarist · Pull Request #52709 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Add tests for inferring contextual generic mapped types by Andarist · Pull Request #52709 · microsoft/TypeScript

Open Graph Description: This PR only introduces some tests. We started relying on this in XState and it turned out that this doesn't work pre-4.8. I tracked down the PR that enabled this use case: #49696 (cc @ahejlsbe...

X Description: This PR only introduces some tests. We started relying on this in XState and it turned out that this doesn't work pre-4.8. I tracked down the PR that enabled this use case: #49696 (cc @ahej...

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

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:fafa041c-36e5-c035-887d-b6d1997b8971
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC326:9775E:92AA986:CEBFFE8:6A50FF0F
html-safe-noncec0342ab6af9dfe8d701f3e7887e8391b37360ca741f370dfc5b57fe25bef050c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzI2Ojk3NzVFOjkyQUE5ODY6Q0VCRkZFODo2QTUwRkYwRiIsInZpc2l0b3JfaWQiOiI4OTY2ODM3NDkwMzM5MDg2MDk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccd860a4a9713db5cb6a0a2ea130f87eb17223b2179578d7d5d3ad84e3eb87c97
hovercard-subject-tagpull_request:1235659102
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/52709/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3cc414f1f9432ad15ac071457ae5d7abbbe8598a98a29e1e91d4cbb678337e95/microsoft/TypeScript/pull/52709
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3cc414f1f9432ad15ac071457ae5d7abbbe8598a98a29e1e91d4cbb678337e95/microsoft/TypeScript/pull/52709
og:image:altThis PR only introduces some tests. We started relying on this in XState and it turned out that this doesn't work pre-4.8. I tracked down the PR that enabled this use case: #49696 (cc @ahejlsbe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndarist
hostnamegithub.com
expected-hostnamegithub.com
None38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12
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
release90441ea9b98e7491aa6ebcd135fccce4e2396f48
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/52709#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F52709
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%2F52709
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/52709
Reloadhttps://github.com/microsoft/TypeScript/pull/52709
Reloadhttps://github.com/microsoft/TypeScript/pull/52709
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52709
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 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
sandersnhttps://github.com/sandersn
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:test/contextual-generic-mapped-typehttps://github.com/Andarist/TypeScript/tree/test/contextual-generic-mapped-type
Conversationhttps://github.com/microsoft/TypeScript/pull/52709
Commits1 (1)https://github.com/microsoft/TypeScript/pull/52709/commits
Checkshttps://github.com/microsoft/TypeScript/pull/52709/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/52709/files
Add tests for inferring contextual generic mapped typeshttps://github.com/microsoft/TypeScript/pull/52709#top
sandersnhttps://github.com/sandersn
microsoft:mainhttps://github.com/microsoft/TypeScript/tree/main
Andarist:test/contextual-generic-mapped-typehttps://github.com/Andarist/TypeScript/tree/test/contextual-generic-mapped-type
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 9, 2023https://github.com/microsoft/TypeScript/pull/52709#issue-1578511480
XStatehttps://github.com/statelyai/xstate
#49696https://github.com/microsoft/TypeScript/pull/49696
@ahejlsberghttps://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52709
https://github.com/Andarist
Add tests for inferring contextual generic mapped typeshttps://github.com/microsoft/TypeScript/pull/52709/commits/8ae70d563f2eb34122ebcac425d0b9640d569f22
8ae70d5https://github.com/microsoft/TypeScript/pull/52709/commits/8ae70d563f2eb34122ebcac425d0b9640d569f22
https://github.com/typescript-bot
typescript-bothttps://github.com/typescript-bot
Feb 9, 2023https://github.com/microsoft/TypeScript/pull/52709#issuecomment-1424743983
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52709
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
Feb 9, 2023https://github.com/microsoft/TypeScript/pull/52709#event-8483300658
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 9, 2023 https://github.com/microsoft/TypeScript/pull/52709#pullrequestreview-1291920129
View reviewed changes https://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22
tests/cases/conformance/types/typeRelationships/typeInference/genericContextualTypes2.tshttps://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22#diff-9d764a79fd977e6ea15eed22ae8e9d0cd8e95071d599acfd41a2f34b2cb83315
Andaristhttps://github.com/Andarist
Feb 9, 2023https://github.com/microsoft/TypeScript/pull/52709#discussion_r1101966305
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@RyanCavanaughhttps://github.com/RyanCavanaugh
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52709
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 9, 2023 https://github.com/microsoft/TypeScript/pull/52709#pullrequestreview-1291921052
View reviewed changes https://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22
tests/cases/conformance/types/typeRelationships/typeInference/genericContextualTypes2.tshttps://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22#diff-9d764a79fd977e6ea15eed22ae8e9d0cd8e95071d599acfd41a2f34b2cb83315
Andaristhttps://github.com/Andarist
Feb 9, 2023https://github.com/microsoft/TypeScript/pull/52709#discussion_r1101967200
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52709
https://github.com/Andarist
Andaristhttps://github.com/Andarist
Feb 9, 2023 https://github.com/microsoft/TypeScript/pull/52709#pullrequestreview-1291921884
View reviewed changes https://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22
tests/cases/conformance/types/typeRelationships/typeInference/genericContextualTypes2.tshttps://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22#diff-9d764a79fd977e6ea15eed22ae8e9d0cd8e95071d599acfd41a2f34b2cb83315
Andaristhttps://github.com/Andarist
Feb 9, 2023https://github.com/microsoft/TypeScript/pull/52709#discussion_r1101967951
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
the TS 4.7 playgroundhttps://www.typescriptlang.org/play?ts=4.7.4#code/C4TwDgpgBAMg9gdwJIDsBmEBOAeAKgPigF4pcoAyKAbwF8BuAKAdEigAUBDTYASw4BsAggGdhPAOYoseAMJwUwCAA9gAGlIBpCCCjLFKACbCoAa21w0pOQr2ESACgZQoAY3mKVALivu9DAJTEhLjWHsAA2rhaIAC6jMzg0GyYcJDcICJiktIhvip21E5Q4RpQPCim5pa5NioxAPzenNx8QqISUjg1YeoahAA+PrURGnEM9Ews0ACyEMAcsnnABVRFHC688t72G0re3XqBRIQAbnA8BuNM5YqYaOvQmR2CGzzyi8OEq85T3gBESmE80UADoOO1JH9GM4APQwqD2LjifahPTqAC2cw43lm8w+YXw-m8Zwu0N0SggLm2SJRSwxWJxWPxtiOp3OBkYNCYBkp-C40DQAFcUK95FBwVkUMz8o5nBKOpiFE0UmlQE9sjh4Mh0DlUfl8AFvOqUC9NlKDvl4lMoNY0BJpctiIVnG5hrThmSIApMCBGlBjaa3ua9ctOfEeS4+ZgBcLRRUXNGOIppusABblCAO-A7eR25E23P2i3LIlQEkcpgJiBJiAplzpqTYKiuODC4DeFCC9EAIywUBo2e+LbdzucLbb3gADKoijQZ84vcAfd55ZJ7EOXa2lQjdt5m24J1BOz2+zRWVAANQX3Ygg8Kef9-wzs+MIA
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52709
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Mar 3, 2023 https://github.com/microsoft/TypeScript/pull/52709#pullrequestreview-1322930847
View reviewed changes https://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22
https://github.com/sandersn
sandersnhttps://github.com/sandersn
d5ccec3https://github.com/microsoft/TypeScript/commit/d5ccec377def9ba398b097b10ceb7e351d188350
Mar 3, 2023https://github.com/microsoft/TypeScript/pull/52709#event-8655159604
https://github.com/Andarist
Andaristhttps://github.com/Andarist
March 7, 2023 10:20https://github.com/microsoft/TypeScript/pull/52709#event-8684030973
https://github.com/microsoft
microsofthttps://github.com/microsoft
Oct 22, 2025https://github.com/microsoft/TypeScript/pull/52709#event-20419504136
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%2F52709
https://github.com/sandersn
sandersn https://github.com/sandersn
https://github.com/microsoft/TypeScript/pull/52709/files/8ae70d563f2eb34122ebcac425d0b9640d569f22
For Uncommitted Bug https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22For%20Uncommitted%20Bug%22
PR Backlog https://github.com/orgs/microsoft/projects/1252
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/52709
https://github.com/Andarist
https://github.com/typescript-bot
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.