Title: Regress: Deep recursive type transform gives any · Issue #29577 · microsoft/TypeScript · GitHub
Open Graph Title: Regress: Deep recursive type transform gives any · Issue #29577 · microsoft/TypeScript
X Title: Regress: Deep recursive type transform gives any · Issue #29577 · microsoft/TypeScript
Description: TypeScript Version: 3.3.0-dev.20190125 Search Terms: It works in 3.1.6, but in 3.2 and 3.3 it gives any Code export type Transform
Open Graph Description: TypeScript Version: 3.3.0-dev.20190125 Search Terms: It works in 3.1.6, but in 3.2 and 3.3 it gives any Code export type Transform
X Description: TypeScript Version: 3.3.0-dev.20190125 Search Terms: It works in 3.1.6, but in 3.2 and 3.3 it gives any Code export type Transform<T> = { [K in keyof T]: Transform<T[K]> }; interface Us...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/29577
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regress: Deep recursive type transform gives any","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:** 3.3.0-dev.20190125\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\n\r\nIt works in 3.1.6, but in 3.2 and 3.3 it gives any\r\n\r\n**Code**\r\n\r\n```ts\r\nexport type Transform\u003cT> = { [K in keyof T]: Transform\u003cT[K]> };\r\ninterface User {\r\n avatar: string;\r\n}\r\n\r\ninterface Guest {\r\n displayName: string;\r\n}\r\n\r\ninterface Product {\r\n users: (User | Guest)[];\r\n}\r\ndeclare var product:Transform\u003cProduct>;\r\nproduct.users // any[] \r\n```\r\n\r\n**Expected behavior:**\r\n`Transform\u003c(User | Guest)>[]`\r\n**Actual behavior:**\r\n`any[]`\r\n\r\n\r\n","author":{"url":"https://github.com/cevek","@type":"Person","name":"cevek"},"datePublished":"2019-01-25T08:43:12Z","url":"https://github.com/microsoft/TypeScript/issues/29577"}
| 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:29c6eb30-0278-0cf8-170c-8192a7dc5426 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B31A:3C90A4:65250A:8E255B:6B047814 |
| html-safe-nonce | ab5493c1ee2544372daa9cac3be71f2dd78eb5f018d49051c9b5494368e940d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzFBOjNDOTBBNDo2NTI1MEE6OEUyNTVCOjZCMDQ3ODE0IiwidmlzaXRvcl9pZCI6IjUyMzM2MDEzMzQ4Mzc4MDMwMjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e6c760a42bd0c8f95fff43e3630872a339b8524cec187c0a81aebff9a87cc053 |
| hovercard-subject-tag | issue:403057050 |
| 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/29577/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76080d1cf58b8526f1aa727b22ec2e2bf8f55f7c84163ba1461231f07847e126/microsoft/TypeScript/issues/29577 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76080d1cf58b8526f1aa727b22ec2e2bf8f55f7c84163ba1461231f07847e126/microsoft/TypeScript/issues/29577 |
| og:image:alt | TypeScript Version: 3.3.0-dev.20190125 Search Terms: It works in 3.1.6, but in 3.2 and 3.3 it gives any Code export type Transform |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cevek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width