Title: Type alias circularly references itself (5.4 regression) · Issue #58302 · microsoft/TypeScript · GitHub
Open Graph Title: Type alias circularly references itself (5.4 regression) · Issue #58302 · microsoft/TypeScript
X Title: Type alias circularly references itself (5.4 regression) · Issue #58302 · microsoft/TypeScript
Description: 🔎 Search Terms Type alias circularly references itself (5.4 regression) 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.5 ⏯ Playground Link https://www.typescriptlang.org/play?ts=5.4.5#code/C4TwDgpgBAQg9nAN...
Open Graph Description: 🔎 Search Terms Type alias circularly references itself (5.4 regression) 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.5 ⏯ Playground Link https://www.typescriptlang...
X Description: 🔎 Search Terms Type alias circularly references itself (5.4 regression) 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.5 ⏯ Playground Link https://www.typescript...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/58302
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type alias circularly references itself (5.4 regression)","articleBody":"### 🔎 Search Terms\n\nType alias circularly references itself (5.4 regression)\n\n### 🕗 Version & Regression Information\n\n- This changed between versions 5.3.3 and 5.4.5\r\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play?ts=5.4.5#code/C4TwDgpgBAQg9nANhAhgOwAouACwM4A8AKgHxQC8UewATgJZoDmUAZALABQUUA3p99wDaAaSgMoAawgg4AMyhEAugC4FIxVAgAPYBDQATPFABGCZOn4DuAfijDLV1UXWadew1DjGAVhADGwA4CtqLaugZGaACuALbGEDRQAD5UtAyMQVa2AAYAJDzCAL4AdPnwSKiY2PjE6iSF2ZkCqmgQAG4JTS3tCQDcloWCUjLySv0c-EA\n\n### 💻 Code\n\n```ts\r\ntype BooleanPaths\u003cT> = string &\r\n {\r\n [K in keyof T]: T[K] extends boolean\r\n ? K\r\n : T[K] extends object\r\n ? K extends number | string\r\n ? `${K}.${BooleanPaths\u003cT[K]>}`\r\n : never\r\n : never;\r\n }[keyof T];\r\n```\r\n\n\n### 🙁 Actual behavior\n\nThis code fails with two errors: \r\n\r\nType alias 'BooleanPaths' circularly references itself.\r\nType 'BooleanPaths' is not generic.\n\n### 🙂 Expected behavior\n\nThe compilation should pass, as it has in previous versions. \n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/ShacharHarshuv","@type":"Person","name":"ShacharHarshuv"},"datePublished":"2024-04-24T13:06:31Z","url":"https://github.com/microsoft/TypeScript/issues/58302"}
| 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:5f09dfae-851d-b943-c95a-c5c175048b15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E1B2:9C505:3FCE7B:557B92:6B04F28B |
| html-safe-nonce | 2855ee2cb81653ee8ce89e6141ba8fac034a614556b2fc07427d2594334ddb05 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUIyOjlDNTA1OjNGQ0U3Qjo1NTdCOTI6NkIwNEYyOEIiLCJ2aXNpdG9yX2lkIjoiNzUzNDY2MTA4NjIxODYxMzM4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3d527df7219759beebd07223014da29bc2b46d893535faafd52eef4792c0f63a |
| hovercard-subject-tag | issue:2261257897 |
| 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/58302/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f169b79dd356ec3a2b4244df1d19b5da98f033ce58e74fb0823ceb5965729a6/microsoft/TypeScript/issues/58302 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f169b79dd356ec3a2b4244df1d19b5da98f033ce58e74fb0823ceb5965729a6/microsoft/TypeScript/issues/58302 |
| og:image:alt | 🔎 Search Terms Type alias circularly references itself (5.4 regression) 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.5 ⏯ Playground Link https://www.typescriptlang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ShacharHarshuv |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b |
| 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 | cbe60d43d23e17438879ed212ad20068394651c4 |
| 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