René's URL Explorer Experiment


Title: Infer object type from string literal to keyof T by sandersn · Pull Request #19227 · microsoft/TypeScript · GitHub

Open Graph Title: Infer object type from string literal to keyof T by sandersn · Pull Request #19227 · microsoft/TypeScript

X Title: Infer object type from string literal to keyof T by sandersn · Pull Request #19227 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Infer object type from string literal to keyof T by sandersn · Pull Request #19227 · microsoft/TypeScript

Open Graph Description: Fixes #18715 Supercedes #19159 When inferring from a string literal [union] type to a index type, infer a object type with properties whose names match the constituents of the union type. The type...

X Description: Fixes #18715 Supercedes #19159 When inferring from a string literal [union] type to a index type, infer a object type with properties whose names match the constituents of the union type. The type...

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

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:0f6bd385-5dd5-0163-c1a4-76020d4c6ef0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB4C4:1793BD:1B74912:25533CB:6A62F645
html-safe-nonce9a01c9d51f3fb3457e1d0f8234ef0f67299cabe28bdba04c3fc1ec3057783eb8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEM0OjE3OTNCRDoxQjc0OTEyOjI1NTMzQ0I6NkE2MkY2NDUiLCJ2aXNpdG9yX2lkIjoiODYzMTY5NDcyNDAxMjYzNTcxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacde6e4a4ef729b3c758a7a2112497b84bd97d59ebdd51b1f8b70c8c149230d3dd
hovercard-subject-tagpull_request:146882960
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/19227/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/74988db5028e3584f31e26bbcabc1790dd01b008fec0516cca473fb3f8744739/microsoft/TypeScript/pull/19227
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/74988db5028e3584f31e26bbcabc1790dd01b008fec0516cca473fb3f8744739/microsoft/TypeScript/pull/19227
og:image:altFixes #18715 Supercedes #19159 When inferring from a string literal [union] type to a index type, infer a object type with properties whose names match the constituents of the union type. The type...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesandersn
hostnamegithub.com
expected-hostnamegithub.com
Noneb415018e190e73858133ddcaa36acce7b3f3572fe54dda84bd3b21a6ec714c30
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
release22f98521e99f504294ab0812b66104d50eb75a70
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/19227#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F19227
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%2F19227
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/19227
Reloadhttps://github.com/microsoft/TypeScript/pull/19227
Reloadhttps://github.com/microsoft/TypeScript/pull/19227
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
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
sandersnhttps://github.com/sandersn
masterhttps://github.com/microsoft/TypeScript/tree/master
infer-object-type-from-string-literal-to-keyof-Thttps://github.com/microsoft/TypeScript/tree/infer-object-type-from-string-literal-to-keyof-T
Conversationhttps://github.com/microsoft/TypeScript/pull/19227
Commits4 (4)https://github.com/microsoft/TypeScript/pull/19227/commits
Checkshttps://github.com/microsoft/TypeScript/pull/19227/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/19227/files
Infer object type from string literal to keyof Thttps://github.com/microsoft/TypeScript/pull/19227#top
sandersnhttps://github.com/sandersn
masterhttps://github.com/microsoft/TypeScript/tree/master
infer-object-type-from-string-literal-to-keyof-Thttps://github.com/microsoft/TypeScript/tree/infer-object-type-from-string-literal-to-keyof-T
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Oct 16, 2017https://github.com/microsoft/TypeScript/pull/19227#issue-265908501
#18715https://github.com/microsoft/TypeScript/issues/18715
#19159https://github.com/microsoft/TypeScript/pull/19159
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
sandersnhttps://github.com/sandersn
October 16, 2017 13:31https://github.com/microsoft/TypeScript/pull/19227#commits-pushed-cfd97da
https://github.com/sandersn
Infer keyof from string literals + contravariantlyhttps://github.com/microsoft/TypeScript/pull/19227/commits/cfd97da680623585d5fcc2e41e8ebdb3c97b23fe
cfd97dahttps://github.com/microsoft/TypeScript/pull/19227/commits/cfd97da680623585d5fcc2e41e8ebdb3c97b23fe
https://github.com/sandersn
Test:type inference from strings to keyof T succeedshttps://github.com/microsoft/TypeScript/pull/19227/commits/cd1be1bbe3ef2c39ed9ce56fe2585ba4c59e1d87
cd1be1bhttps://github.com/microsoft/TypeScript/pull/19227/commits/cd1be1bbe3ef2c39ed9ce56fe2585ba4c59e1d87
https://github.com/sandersn
sandersnhttps://github.com/sandersn
ahejlsberghttps://github.com/ahejlsberg
October 16, 2017 20:39https://github.com/microsoft/TypeScript/pull/19227#event-1295648470
https://github.com/DanielRosenwasser
DanielRosenwasserhttps://github.com/DanielRosenwasser
Oct 17, 2017https://github.com/microsoft/TypeScript/pull/19227#issuecomment-337100585
some scenarioshttps://github.com/vuejs/vue/blob/9caed00d20f37c750e39db4ec86d278b453f0e5d/types/vue.d.ts#L68
@HerringtonDarkholmehttps://github.com/HerringtonDarkholme
@ktsnhttps://github.com/ktsn
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Oct 17, 2017https://github.com/microsoft/TypeScript/pull/19227#issuecomment-337297116
@ahejlsberghttps://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
Fix linthttps://github.com/microsoft/TypeScript/pull/19227/commits/abdfbaa067d0e2754878fed230fbcb56e6cd8658
abdfbaahttps://github.com/microsoft/TypeScript/pull/19227/commits/abdfbaa067d0e2754878fed230fbcb56e6cd8658
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Oct 17, 2017https://github.com/microsoft/TypeScript/pull/19227#issuecomment-337346678
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Oct 31, 2017 https://github.com/microsoft/TypeScript/pull/19227#ref-pullrequest-265347255
Continue inferring single generic signature's type parameters in presence of errors #19159 https://github.com/microsoft/TypeScript/pull/19159
https://github.com/mhegazy
mhegazyhttps://github.com/mhegazy
Nov 9, 2017https://github.com/microsoft/TypeScript/pull/19227#issuecomment-343020305
@sandersnhttps://github.com/sandersn
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Nov 9, 2017https://github.com/microsoft/TypeScript/pull/19227#issuecomment-343217046
@DanielRosenwasserhttps://github.com/DanielRosenwasser
@ahejlsberghttps://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
Merge branch 'master' into infer-object-type-from-string-literal-to-k…https://github.com/microsoft/TypeScript/pull/19227/commits/ef07efe70a68eb1c080ddd46f634373d6fbaa434
ef07efehttps://github.com/microsoft/TypeScript/pull/19227/commits/ef07efe70a68eb1c080ddd46f634373d6fbaa434
https://github.com/sandersn
sandersnhttps://github.com/sandersn
c698a2bhttps://github.com/microsoft/TypeScript/commit/c698a2b8e58c4d217f8266b68cd634aa3be0d34d
Nov 16, 2017https://github.com/microsoft/TypeScript/pull/19227#event-1346180971
https://github.com/sandersn
sandersnhttps://github.com/sandersn
November 16, 2017 23:07https://github.com/microsoft/TypeScript/pull/19227#event-1346181085
https://github.com/HerringtonDarkholme
HerringtonDarkholmehttps://github.com/HerringtonDarkholme
Jan 18, 2018https://github.com/microsoft/TypeScript/pull/19227#issuecomment-358533228
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Jan 18, 2018https://github.com/microsoft/TypeScript/pull/19227#issuecomment-358695477
@HerringtonDarkholmehttps://github.com/HerringtonDarkholme
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Jan 18, 2018 https://github.com/microsoft/TypeScript/pull/19227#ref-pullrequest-289700793
Inference of string literals to keyof creates an object with props of type any, not {} #21271 https://github.com/microsoft/TypeScript/pull/21271
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Jan 18, 2018https://github.com/microsoft/TypeScript/pull/19227#issuecomment-358709162
#21271https://github.com/microsoft/TypeScript/pull/21271
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/gcnew
gcnewhttps://github.com/gcnew
Jan 18, 2018https://github.com/microsoft/TypeScript/pull/19227#issuecomment-358764543
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/HerringtonDarkholme
HerringtonDarkholmehttps://github.com/HerringtonDarkholme
Jan 19, 2018https://github.com/microsoft/TypeScript/pull/19227#issuecomment-358845372
@gcnewhttps://github.com/gcnew
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/gcnew
gcnewhttps://github.com/gcnew
Jan 19, 2018https://github.com/microsoft/TypeScript/pull/19227#issuecomment-359011288
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/HerringtonDarkholme
HerringtonDarkholmehttps://github.com/HerringtonDarkholme
Mar 12, 2018 https://github.com/microsoft/TypeScript/pull/19227#ref-pullrequest-304227383
feat(typing): use keyof inference to simplify definition vuejs/vue#7797 https://github.com/vuejs/vue/pull/7797
https://github.com/microsoft
microsofthttps://github.com/microsoft
Jul 3, 2018https://github.com/microsoft/TypeScript/pull/19227#event-1712802965
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%2F19227
https://github.com/ahejlsberg
ahejlsberg https://github.com/ahejlsberg
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/19227
https://github.com/sandersn
https://github.com/DanielRosenwasser
https://github.com/mhegazy
https://github.com/HerringtonDarkholme
https://github.com/gcnew
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.