Title: Better display representation for intersection types · Issue #7705 · microsoft/TypeScript · GitHub
Open Graph Title: Better display representation for intersection types · Issue #7705 · microsoft/TypeScript
X Title: Better display representation for intersection types · Issue #7705 · microsoft/TypeScript
Description: I'm not sure if this has been discussed before, but join types are mostly unreadable. I think the type should be prettified somehow before being displayed to the user. TypeScript Version: 1.8 Code type T1 = {}; type T2 = {test: number}; ...
Open Graph Description: I'm not sure if this has been discussed before, but join types are mostly unreadable. I think the type should be prettified somehow before being displayed to the user. TypeScript Version: 1.8 Code ...
X Description: I'm not sure if this has been discussed before, but join types are mostly unreadable. I think the type should be prettified somehow before being displayed to the user. TypeScript Version: 1.8 C...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7705
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better display representation for intersection types","articleBody":"\u003c!--\nThank you for contributing to TypeScript! Please review this checklist\n before submitting your issue.\n[ ] Many common issues and suggestions are addressed in the FAQ\n https://github.com/Microsoft/TypeScript/wiki/FAQ\n[ ] Search for duplicates before logging new issues\n https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue\n[ ] Questions are best asked and answered at Stack Overflow\n http://stackoverflow.com/questions/tagged/typescript\n\nFor bug reports, please include the information below.\n__________________________________________________________ -->\n\nI'm not sure if this has been discussed before, but join types are mostly unreadable. I think the type should be prettified somehow before being displayed to the user.\n\n**TypeScript Version:** \n\n1.8\n\n**Code**\n\n``` ts\ntype T1 = {};\ntype T2 = {test: number};\ntype J = T1 & T2;\n```\n\n**Expected behavior:**\n\n``` ts\nvar x: J;\ntypeof x; // {test: number}\n```\n\n**Actual behavior:** \n\n``` ts\nvar x: J;\ntypeof x; // {} & {test: number}\n```\n","author":{"url":"https://github.com/louy","@type":"Person","name":"louy"},"datePublished":"2016-03-27T15:16:46Z","url":"https://github.com/microsoft/TypeScript/issues/7705"}
| 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:9a7c1af9-6188-d7cd-08ad-5b6ea879a4c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C948:305B07:38CE8A:4CE994:6B00C6D5 |
| html-safe-nonce | d83c8cc6c6362efb3748b80732690c840ab078738e8b2183c2e73bc4669b9e43 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTQ4OjMwNUIwNzozOENFOEE6NENFOTk0OjZCMDBDNkQ1IiwidmlzaXRvcl9pZCI6IjIzMjI1MjY5ODc1NjM4NzgxMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3916156d32eccced5e8fa186218e6e77934985758859179937f6054c72217a18 |
| hovercard-subject-tag | issue:143818215 |
| 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/7705/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3bcc7c352f284f3e870a49e0e57d286941e494e58b83c7a554d515a4551acbc/microsoft/TypeScript/issues/7705 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3bcc7c352f284f3e870a49e0e57d286941e494e58b83c7a554d515a4551acbc/microsoft/TypeScript/issues/7705 |
| og:image:alt | I'm not sure if this has been discussed before, but join types are mostly unreadable. I think the type should be prettified somehow before being displayed to the user. TypeScript Version: 1.8 Code ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | louy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| 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 | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width