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
Domain: github.com
Links:
Viewport: width=device-width
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-profiling 0 react-import-map react,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-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:48d8532c-6b9c-25d2-d362-4821d2d2bfc2 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 84AE:EDA7A:3084152:3DA1B76:6B01CA49 html-safe-nonce 67ac62591ed448a79b27871f0cc068e44cb24efccdb64b95d634e1c6cfcb5b4b visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEFFOkVEQTdBOjMwODQxNTI6M0RBMUI3Njo2QjAxQ0E0OSIsInZpc2l0b3JfaWQiOiI3MTA2OTgyNjE4MTM4MjY2MTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 17e89921d9dde6b36584420c8471fc4a45c3057fb5030232dcef90f1cd965978 hovercard-subject-tag issue:383526194 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/28647/issue_layout twitter:image https://opengraph.githubassets.com/6f7221906922a072e7c3c0e07a81742e1deeee1bcb09d563a584156d7c33618f/microsoft/TypeScript/issues/28647 twitter:card summary_large_image og:image https://opengraph.githubassets.com/6f7221906922a072e7c3c0e07a81742e1deeee1bcb09d563a584156d7c33618f/microsoft/TypeScript/issues/28647 og:image:alt TypeScript Version: typescript@3.3.0-dev.20181122 Search Terms: TS2536 Record Map vuex Code interface ITest { expectedStr: string; expectedN: number; } interface MapAccessor og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username pikax hostname github.com expected-hostname github.com None cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c turbo-cache-control no-preview go-import github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git octolytics-dimension-user_id 6154722 octolytics-dimension-user_login microsoft octolytics-dimension-repository_id 20929025 octolytics-dimension-repository_nwo microsoft/TypeScript octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 20929025 octolytics-dimension-repository_network_root_nwo microsoft/TypeScript turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 8c77c9e8439031ad54c75a250694842892f693e1 ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.