René's URL Explorer Experiment


Title: After updating to 3.x.x getting TS2536 · Issue #28647 · microsoft/TypeScript · GitHub

Open Graph Title: After updating to 3.x.x getting TS2536 · Issue #28647 · microsoft/TypeScript

X Title: After updating to 3.x.x getting TS2536 · Issue #28647 · microsoft/TypeScript

Description: TypeScript Version: typescript@3.3.0-dev.20181122 Search Terms: TS2536 Record Map vuex Code interface ITest { expectedStr: string; expectedN: number; } interface MapAccessor { = ...

Open Graph Description: TypeScript Version: typescript@3.3.0-dev.20181122 Search Terms: TS2536 Record Map vuex Code interface ITest { expectedStr: string; expectedN: number; } interface MapAccessor {

X Description: TypeScript Version: typescript@3.3.0-dev.20181122 Search Terms: TS2536 Record Map vuex Code interface ITest { expectedStr: string; expectedN: number; } interface MapAccessor<Getters> { <T ...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/28647

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"After updating to 3.x.x getting TS2536 ","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:**  typescript@3.3.0-dev.20181122\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\nTS2536 Record Map vuex\r\n\r\n**Code**\r\n\r\n```ts\r\ninterface ITest {\r\n  expectedStr: string;\r\n  expectedN: number;\r\n}\r\n\r\ninterface MapAccessor\u003cGetters> {\r\n  \u003cT = Getters, Map extends Record\u003cstring, keyof T> = Record\u003cstring, keyof T>>(\r\n    map: Map\r\n  ): { [K in keyof Map]: (() => T[Map[K]]) };\r\n}\r\n\r\ninterface TestAccess {\r\n  str: \"expectedStr\";\r\n}\r\n\r\nconst t: MapAccessor\u003cITest> = {} as any;\r\n\r\nconst str = t({\r\n  str: \"expectedStr\"\r\n}).str;\r\n\r\n```\r\n\r\n**Expected behavior:**\r\nNo compile issue, is working using typescript@3.0.1, checked the breaking changes and found nothing in regards to this.\r\n\r\nIntellisense still works as expected giving error if you change `expectedStr` to an invalid value.\r\n\r\n\r\n**Actual behavior:**\r\nNot giving error: index.ts:9:33 - error TS2536: Type 'Map[K]' cannot be used to index type 'T'.\r\n\r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior --> \r\n[playground](http://www.typescriptlang.org/play/index.html#src=interface%20ITest%20%7B%0D%0A%20%20expectedStr%3A%20string%3B%0D%0A%20%20expectedN%3A%20number%3B%0D%0A%7D%0D%0A%0D%0Ainterface%20MapAccessor%3CGetters%3E%20%7B%0D%0A%20%20%3CT%20%3D%20Getters%2C%20Map%20extends%20Record%3Cstring%2C%20keyof%20T%3E%20%3D%20Record%3Cstring%2C%20keyof%20T%3E%3E(%0D%0A%20%20%20%20map%3A%20Map%0D%0A%20%20)%3A%20%7B%20%5BK%20in%20keyof%20Map%5D%3A%20(()%20%3D%3E%20T%5BMap%5BK%5D%5D)%20%7D%3B%0D%0A%7D%0D%0A%0D%0Ainterface%20TestAccess%20%7B%0D%0A%20%20str%3A%20%22expectedStr%22%3B%0D%0A%7D%0D%0A%0D%0Aconst%20t%3A%20MapAccessor%3CITest%3E%20%3D%20%7B%7D%20as%20any%3B%0D%0A%0D%0Aconst%20str%20%3D%20t(%7B%0D%0A%20%20str%3A%20%22expectedStr%22%0D%0A%7D).str%3B%0D%0A)\r\n\r\n","author":{"url":"https://github.com/pikax","@type":"Person","name":"pikax"},"datePublished":"2018-11-22T13:01:25Z","url":"https://github.com/microsoft/TypeScript/issues/28647"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:48d8532c-6b9c-25d2-d362-4821d2d2bfc2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id84AE:EDA7A:3084152:3DA1B76:6B01CA49
html-safe-nonce67ac62591ed448a79b27871f0cc068e44cb24efccdb64b95d634e1c6cfcb5b4b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEFFOkVEQTdBOjMwODQxNTI6M0RBMUI3Njo2QjAxQ0E0OSIsInZpc2l0b3JfaWQiOiI3MTA2OTgyNjE4MTM4MjY2MTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac17e89921d9dde6b36584420c8471fc4a45c3057fb5030232dcef90f1cd965978
hovercard-subject-tagissue:383526194
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/28647/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6f7221906922a072e7c3c0e07a81742e1deeee1bcb09d563a584156d7c33618f/microsoft/TypeScript/issues/28647
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6f7221906922a072e7c3c0e07a81742e1deeee1bcb09d563a584156d7c33618f/microsoft/TypeScript/issues/28647
og:image:altTypeScript Version: typescript@3.3.0-dev.20181122 Search Terms: TS2536 Record Map vuex Code interface ITest { expectedStr: string; expectedN: number; } interface MapAccessor {
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepikax
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
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-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/28647#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F28647
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%2Fissues%2F28647
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/28647
Reloadhttps://github.com/microsoft/TypeScript/issues/28647
Reloadhttps://github.com/microsoft/TypeScript/issues/28647
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28647
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28647
After updating to 3.x.x getting TS2536 https://github.com/microsoft/TypeScript/issues/28647#top
https://github.com/ahejlsberg
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
https://github.com/pikax
Carlos Rodrigues (pikax)https://github.com/pikax
on Nov 22, 2018https://github.com/microsoft/TypeScript/issues/28647#issue-383526194
playgroundhttp://www.typescriptlang.org/play/index.html#src=interface%20ITest%20%7B%0D%0A%20%20expectedStr%3A%20string%3B%0D%0A%20%20expectedN%3A%20number%3B%0D%0A%7D%0D%0A%0D%0Ainterface%20MapAccessor%3CGetters%3E%20%7B%0D%0A%20%20%3CT%20%3D%20Getters%2C%20Map%20extends%20Record%3Cstring%2C%20keyof%20T%3E%20%3D%20Record%3Cstring%2C%20keyof%20T%3E%3E(%0D%0A%20%20%20%20map%3A%20Map%0D%0A%20%20)%3A%20%7B%20%5BK%20in%20keyof%20Map%5D%3A%20(()%20%3D%3E%20T%5BMap%5BK%5D%5D)%20%7D%3B%0D%0A%7D%0D%0A%0D%0Ainterface%20TestAccess%20%7B%0D%0A%20%20str%3A%20%22expectedStr%22%3B%0D%0A%7D%0D%0A%0D%0Aconst%20t%3A%20MapAccessor%3CITest%3E%20%3D%20%7B%7D%20as%20any%3B%0D%0A%0D%0Aconst%20str%20%3D%20t(%7B%0D%0A%20%20str%3A%20%22expectedStr%22%0D%0A%7D).str%3B%0D%0A
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
on Nov 22, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441050544
#27490https://github.com/microsoft/TypeScript/pull/27490
https://github.com/pikax
Carlos Rodrigues (pikax)https://github.com/pikax
on Nov 23, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441192104
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
on Nov 23, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441197859
https://github.com/pikax
Carlos Rodrigues (pikax)https://github.com/pikax
on Nov 23, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441198775
https://user-images.githubusercontent.com/4620458/48937695-d825d380-ef06-11e8-8809-003d6e21093e.png
playgroundhttp://www.typescriptlang.org/play/index.html#src=interface%20ITest%20%7B%0D%0A%20%20expectedStr%3A%20string%3B%0D%0A%20%20expectedN%3A%20number%3B%0D%0A%7D%0D%0A%0D%0Ainterface%20MapAccessor%3CGetters%3E%20%7B%0D%0A%20%20%3CT%20%3D%20Getters%2C%20Map%20extends%20Record%3Cstring%2C%20keyof%20T%3E%20%3D%20Record%3Cstring%2C%20keyof%20T%3E%3E(%0D%0A%20%20%20%20map%3A%20Map%0D%0A%20%20)%3A%20%7B%20%5BK%20in%20keyof%20Map%5D%3A%20(()%20%3D%3E%20T%5BMap%5BK%5D%5D)%20%7D%3B%0D%0A%7D%0D%0A%0D%0Ainterface%20TestAccess%20%7B%0D%0A%20%20str%3A%20%22expectedStr%22%3B%0D%0A%7D%0D%0A%0D%0Aconst%20t%3A%20MapAccessor%3CITest%3E%20%3D%20%7B%7D%20as%20any%3B%0D%0A%0D%0Aconst%20str%20%3D%20t(%7B%0D%0A%20%20str%3A%20%22expectedStr%22%0D%0A%7D).str%3B%0D%0A
https://user-images.githubusercontent.com/4620458/48937809-2935c780-ef07-11e8-9d16-8fa09829f232.png
Wesley Wigham (weswigham)https://github.com/weswigham
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
Domain: Indexed Access TypesThe issue relates to accessing subtypes via index accesshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Indexed%20Access%20Types%22
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#event-1987677742
Wesley Wigham (weswigham)https://github.com/weswigham
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#event-1987680613
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441764307
Jack Williams (@jack-williams)https://github.com/jack-williams
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441768975
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
Domain: Indexed Access TypesThe issue relates to accessing subtypes via index accesshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20Indexed%20Access%20Types%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#event-1987712786
https://github.com/jack-williams
Jack Williams (jack-williams)https://github.com/jack-williams
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441782607
Wesley Wigham (weswigham)https://github.com/weswigham
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#event-1987832281
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Nov 26, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-441787307
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/typescript-bot
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
on Dec 13, 2018https://github.com/microsoft/TypeScript/issues/28647#issuecomment-447101059
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Dec 13, 2018https://github.com/microsoft/TypeScript/issues/28647#event-2025189901
https://github.com/pikax
Carlos Rodrigues (pikax)https://github.com/pikax
on Feb 14, 2019https://github.com/microsoft/TypeScript/issues/28647#issuecomment-463555906
playgroundhttp://www.typescriptlang.org/play/index.html#src=%0D%0Ainterface%20MyGetter%20%7B%0D%0A%20%20%20%20vstring%20%3A%20string%2C%0D%0A%20%20%20%20vnumber%3A%20number%2C%0D%0A%0D%0A%20%20%20%20vhidden%3A%20boolean%3B%0D%0A%7D%0D%0Adeclare%20interface%20TestGeneric%3CGetters%3E%20%7B%0D%0A%20%20%20%20%3CMap%20extends%20Record%3Cstring%2C%20keyof%20Getters%3E%3E(map%3A%20Map)%20%3A%20%7B%20%5BK%20in%20keyof%20Map%5D%3A%20Getters%5BMap%5BK%5D%5D%7D%3B%20%0D%0A%7D%0D%0A%0D%0Adeclare%20interface%20TestSpecific%20%7B%0D%0A%20%20%20%20%3CMap%20extends%20Record%3Cstring%2C%20keyof%20MyGetter%3E%3E(map%3A%20Map)%3A%20%7B%20%5BK%20in%20keyof%20Map%5D%3A%20MyGetter%5BMap%5BK%5D%5D%7D%0D%0A%7D%0D%0A%0D%0Adeclare%20const%20genericInterface%3A%20TestGeneric%3CMyGetter%3E%3B%0D%0Adeclare%20const%20speficInterface%3A%20TestSpecific%3B%0D%0A%0D%0Aconst%20generic%20%3D%20genericInterface(%7B%0D%0A%20%20%20%20testString%3A%20'vstring'%2C%0D%0A%20%20%20%20testNumber%3A%20'vnumber'%0D%0A%7D)%3B%0D%0Aconst%20specific%20%3D%20speficInterface(%7B%0D%0A%20%20%20%20testString%3A%20'vstring'%2C%0D%0A%20%20%20%20testNumber%3A%20'vnumber'%0D%0A%7D)%3B%20%0D%0A%0D%0A%0D%0Ageneric.testNumber%3B%20%2F%2Fnumber%0D%0Aspecific.testNumber%3B%20%2F%2F%20number%0D%0A%0D%0Ageneric.testString%3B%20%2F%2F%20string%0D%0Aspecific.testString%3B%20%2F%2Fstring
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/28647#event-20415850894
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/28647
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/28647
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
Breaking ChangeWould introduce errors in existing codehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Breaking%20Change%22
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
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.