Title: Type Instantiation is Excessively Deep Error Regression in #37348 · Issue #60567 · microsoft/TypeScript · GitHub
Open Graph Title: Type Instantiation is Excessively Deep Error Regression in #37348 · Issue #60567 · microsoft/TypeScript
X Title: Type Instantiation is Excessively Deep Error Regression in #37348 · Issue #60567 · microsoft/TypeScript
Description: 🔎 Search Terms type instantiation is excessively deep, unused type parameter, unused tuple element, #37348 🕗 Version & Regression Information This changed in PR #37348 ⏯ Playground Link https://www.typescriptlang.org/play/?#code/CYUwxgNg...
Open Graph Description: 🔎 Search Terms type instantiation is excessively deep, unused type parameter, unused tuple element, #37348 🕗 Version & Regression Information This changed in PR #37348 ⏯ Playground Link https://www...
X Description: 🔎 Search Terms type instantiation is excessively deep, unused type parameter, unused tuple element, #37348 🕗 Version & Regression Information This changed in PR #37348 ⏯ Playground Link https:/...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/60567
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Type Instantiation is Excessively Deep Error Regression in #37348","articleBody":"### 🔎 Search Terms\n\ntype instantiation is excessively deep, unused type parameter, unused tuple element, #37348\n\n### 🕗 Version & Regression Information\n\nThis changed in PR #37348\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play/?#code/CYUwxgNghgTiAEkoGdnwPoEkB2AXEM2UEAKgJ4AOIAIlLlALID2oE8A3gFDw-wVwVYNAgEsAbiGC16ALngBtKNjIAaeErIBdANycAvrs6gkcRNFTxyVaYxYgIAHm68A9C-iYAZvFwALEWi4lAiCMFAAtiD4MPAB8KxRkj6+CGAiMGAArtAwIkHwAOZMIGhQAO5QZAB0zjwAqtiZyJIqtfDUohJSdFCtAHzwIAAe+NjAaFh4BESkwTbMrBxt-CChwrldNnJ+ccOj45ZzPQv2DhpqItieBO2dkjZ9bbzwAPzwbpb+aM1gTGODEBAkTwsWwyQQuEyFEBsVKEGQTHg2HAJWQsDI8E8TBiCMi8DgKD+NWeJN48h2yDUGk0T14cg0uj0QA\n\n### 💻 Code\n\n```ts\ndeclare class _InternalTypeDataModel {\n prepareDerivedData: [any, any];\n};\n\ndeclare class TypeDataModel\u003c\n // If this type parameter is deleted the circularity goes away.\n Unused,\n DerivedData,\n> extends _InternalTypeDataModel {\n prepareDerivedData: this extends TypeDataModel\u003cany, infer DerivedData>\n ? // This second element in the tuple is also necessary for some reason.\n [this, any]\n : any;\n}\n```\n\n\n### 🙁 Actual behavior\n\n```\nType instantiation is excessively deep and possibly infinite.\n```\n\n### 🙂 Expected behavior\n\nNo error.\n\n### Additional information about the issue\n\nI understand the weirdness in this minimized code but the actual code I was reducing actually does useful things and doesn't really seem so contrived in context. In actual code all type parameters and tuple elements actually do useful things but this reproduction shows it doesn't matter if they're used, just that they exist, for some reason.","author":{"url":"https://github.com/LukeAbby","@type":"Person","name":"LukeAbby"},"datePublished":"2024-11-23T02:15:28Z","url":"https://github.com/microsoft/TypeScript/issues/60567"}
| 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:8718cb4c-1416-1822-d694-61031983fb90 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8EE:1EC9BC:32998F0:408FD77:6B01DD7B |
| html-safe-nonce | b0cdbcd1782d06fff108139ae5325b39f17cd38fe056a3405bdcea8a04d6d83e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEVFOjFFQzlCQzozMjk5OEYwOjQwOEZENzc6NkIwMUREN0IiLCJ2aXNpdG9yX2lkIjoiOTcwODk3NDAzNjY4NDU0Nzc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6ecdafbddb09cf3e02d4562d2da5f26350c6e63d29bdec52db6af8d25121bbc3 |
| hovercard-subject-tag | issue:2685114037 |
| 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/60567/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad3d6a4bb2b3371ccccdc50114560367b3e05094237ba621f12b30fb0b8e5c31/microsoft/TypeScript/issues/60567 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad3d6a4bb2b3371ccccdc50114560367b3e05094237ba621f12b30fb0b8e5c31/microsoft/TypeScript/issues/60567 |
| og:image:alt | 🔎 Search Terms type instantiation is excessively deep, unused type parameter, unused tuple element, #37348 🕗 Version & Regression Information This changed in PR #37348 ⏯ Playground Link https://www... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LukeAbby |
| 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 |
Links:
Viewport: width=device-width