Title: How to print anonymous recursive types · Issue #463 · microsoft/TypeScript · GitHub
Open Graph Title: How to print anonymous recursive types · Issue #463 · microsoft/TypeScript
X Title: How to print anonymous recursive types · Issue #463 · microsoft/TypeScript
Description: var a: { foo: typeof a; } a has a recursive type. If we try to print this type, it prints { foo: any; }, but it does not behave as such in type comparisons. So we are lying when we print it. When fixing this, it's important to consider b...
Open Graph Description: var a: { foo: typeof a; } a has a recursive type. If we try to print this type, it prints { foo: any; }, but it does not behave as such in type comparisons. So we are lying when we print it. When f...
X Description: var a: { foo: typeof a; } a has a recursive type. If we try to print this type, it prints { foo: any; }, but it does not behave as such in type comparisons. So we are lying when we print it. When f...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/463
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to print anonymous recursive types","articleBody":"``` TS\nvar a: { foo: typeof a; }\n```\n\n`a` has a recursive type. If we try to print this type, it prints `{ foo: any; }`, but it does not behave as such in type comparisons. So we are lying when we print it.\n\nWhen fixing this, it's important to consider both displaying a type to the user, and generating .d.ts files.\n","author":{"url":"https://github.com/JsonFreeman","@type":"Person","name":"JsonFreeman"},"datePublished":"2014-08-15T21:16:03Z","url":"https://github.com/microsoft/TypeScript/issues/463"}
| 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:6e22c116-3695-f3f1-bf6e-64910b5cad38 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED90:4BB79:1F73AE4:281EC24:6B0171F3 |
| html-safe-nonce | 737ac0f968871e39ba469b03b4555dfd5138c41d734cdbbd7b62a5fcb7c59a2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDkwOjRCQjc5OjFGNzNBRTQ6MjgxRUMyNDo2QjAxNzFGMyIsInZpc2l0b3JfaWQiOiIyNDQ1OTc3MzY0Njc0Mjc4MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 79889c49aec09f5d0208b7f2c8a2b10d21e79769029cc9029802fe0fbc64ea0d |
| hovercard-subject-tag | issue:40385297 |
| 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/463/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2aa817a2516291ad9c99f2264550e2a217bbe42a50fd0d455a7b3ac881364dc9/microsoft/TypeScript/issues/463 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2aa817a2516291ad9c99f2264550e2a217bbe42a50fd0d455a7b3ac881364dc9/microsoft/TypeScript/issues/463 |
| og:image:alt | var a: { foo: typeof a; } a has a recursive type. If we try to print this type, it prints { foo: any; }, but it does not behave as such in type comparisons. So we are lying when we print it. When f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JsonFreeman |
| 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