René's URL Explorer Experiment


Title: [Suggestion] Display the name of type alias in quick-info consistently · Issue #13095 · microsoft/TypeScript · GitHub

Open Graph Title: [Suggestion] Display the name of type alias in quick-info consistently · Issue #13095 · microsoft/TypeScript

X Title: [Suggestion] Display the name of type alias in quick-info consistently · Issue #13095 · microsoft/TypeScript

Description: I have tried my best to search existing issues. Pardon me if it is still duplicated. Currently quick-info will always display the name of an interface no matter if it is imported from other modules or declared in the same file. This grea...

Open Graph Description: I have tried my best to search existing issues. Pardon me if it is still duplicated. Currently quick-info will always display the name of an interface no matter if it is imported from other modules...

X Description: I have tried my best to search existing issues. Pardon me if it is still duplicated. Currently quick-info will always display the name of an interface no matter if it is imported from other modules...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/13095

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Suggestion]  Display the name of type alias in quick-info consistently","articleBody":"I have tried my best to search existing issues. Pardon me if it is still duplicated.\r\n\r\nCurrently quick-info will always display the name of an `interface` no matter if it is imported from other modules or declared in the same file. This greatly shortens quick-info message length. \r\n\r\nType alias behaves partly like `interface`: if type alias is declared in a non-module file, quick-info displays its alias name. \r\n```ts\r\ntype Alias\u003cK> = {\r\n  property1: K\r\n} | {\r\n  property2: number\r\n}\r\n\r\nvar a: Alias\u003cstring> // popup as Alias\u003cstring>\r\n```\r\n[Online example](http://www.typescriptlang.org/play/#src=type%20Alias%3CK%3E%20%3D%20%7B%0A%20%20property1%3A%20K%0A%7D%20%7C%20%7B%0A%20%20property2%3A%20number%0A%7D%0A%0Avar%20a%3A%20Alias%3Cstring%3E)\r\n\r\nHowever, an `import` statement will make type alias displayed as its type literal expansion. \r\n\r\n```ts\r\nimport 'test'\r\ntype Alias\u003cK> = {\r\n  property1: K\r\n} | {\r\n  property2: number\r\n}\r\n\r\nvar a: Alias\u003cstring> // displayed as `{property1: string}|{property2: number}`\r\n```\r\n[example](http://www.typescriptlang.org/play/#src=import%20%27test%27%0Atype%20Alias%3CK%3E%20%3D%20%7B%0A%20%20property1%3A%20K%0A%7D%20%7C%20%7B%0A%20%20property2%3A%20number%0A%7D%0A%0Avar%20a%3A%20Alias%3Cstring%3E)\r\n\r\nWhen used with mapped types, type alias' full expansion soon becomes very lengthy. For my extreme case, one type can have 7500+ lines of code after expansion. \r\n\r\nAfter mapped types have more adoption, displaying type alias, in my speculation, might be a real world usability issue. It might even strangulate language service if the type is too large to show. For example, https://github.com/Microsoft/TypeScript/issues/12904 is using mapped type for MongoDB API. While all the typing looks proper and valid to me, the quick-info for `MongoFilter\u003cPerson>` is quite daunting. Also, compiler error reports the alias name, not expansion.\r\n\r\nIt would be fine if TypeScript can show alias name in quick-info consistently and concisely.","author":{"url":"https://github.com/HerringtonDarkholme","@type":"Person","name":"HerringtonDarkholme"},"datePublished":"2016-12-21T15:15:24Z","url":"https://github.com/microsoft/TypeScript/issues/13095"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8a005448-c1c9-7013-fd8d-891f647af09c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id87A8:19B6A2:F9A382:14A445D:6B01D9C8
html-safe-nonce5d7ce57f885fd747fd241c53d066b8a1ecf12ba4a46ec49b1549949acaf7ad83
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0E4OjE5QjZBMjpGOUEzODI6MTRBNDQ1RDo2QjAxRDlDOCIsInZpc2l0b3JfaWQiOiIzODE5NjIwNjY3MDI5MDUxODQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4a5ed11995a92d79649ea1b0dd7d13b0dfb2601679566ce337c96c5798b82893
hovercard-subject-tagissue:196957075
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/13095/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e7f8da323fb3bd5a637ebbe7c42c05f2c1d0eee89d9ed38941f02bdddf4ea7a3/microsoft/TypeScript/issues/13095
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e7f8da323fb3bd5a637ebbe7c42c05f2c1d0eee89d9ed38941f02bdddf4ea7a3/microsoft/TypeScript/issues/13095
og:image:altI have tried my best to search existing issues. Pardon me if it is still duplicated. Currently quick-info will always display the name of an interface no matter if it is imported from other modules...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHerringtonDarkholme
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/13095#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F13095
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F13095
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/13095
Reloadhttps://github.com/microsoft/TypeScript/issues/13095
Reloadhttps://github.com/microsoft/TypeScript/issues/13095
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/13095
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/13095
[Suggestion] Display the name of type alias in quick-info consistentlyhttps://github.com/microsoft/TypeScript/issues/13095#top
Domain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Quick%20Info%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Too ComplexAn issue which adding support for may be too complex for the value it addshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Too%20Complex%22
https://github.com/HerringtonDarkholme
Herrington Darkholme (HerringtonDarkholme)https://github.com/HerringtonDarkholme
on Dec 21, 2016https://github.com/microsoft/TypeScript/issues/13095#issue-196957075
Online examplehttp://www.typescriptlang.org/play/#src=type%20Alias%3CK%3E%20%3D%20%7B%0A%20%20property1%3A%20K%0A%7D%20%7C%20%7B%0A%20%20property2%3A%20number%0A%7D%0A%0Avar%20a%3A%20Alias%3Cstring%3E
examplehttp://www.typescriptlang.org/play/#src=import%20%27test%27%0Atype%20Alias%3CK%3E%20%3D%20%7B%0A%20%20property1%3A%20K%0A%7D%20%7C%20%7B%0A%20%20property2%3A%20number%0A%7D%0A%0Avar%20a%3A%20Alias%3Cstring%3E
#12904https://github.com/microsoft/TypeScript/issues/12904
Herrington Darkholme (HerringtonDarkholme)https://github.com/HerringtonDarkholme
on Dec 21, 2016https://github.com/microsoft/TypeScript/issues/13095#event-901765525
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Dec 21, 2016https://github.com/microsoft/TypeScript/issues/13095#event-902116741
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Dec 21, 2016https://github.com/microsoft/TypeScript/issues/13095#issuecomment-268627521
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jan 10, 2017https://github.com/microsoft/TypeScript/issues/13095#event-916793559
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jan 10, 2017https://github.com/microsoft/TypeScript/issues/13095#issuecomment-271448569
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Apr 12, 2018https://github.com/microsoft/TypeScript/issues/13095#event-1572140804
https://github.com/kpdonn
Kevin Donnelly (kpdonn)https://github.com/kpdonn
on Apr 24, 2018https://github.com/microsoft/TypeScript/issues/13095#issuecomment-383763915
#23638https://github.com/microsoft/TypeScript/pull/23638
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Domain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Quick%20Info%22
on May 24, 2018https://github.com/microsoft/TypeScript/issues/13095#event-1643413523
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Too ComplexAn issue which adding support for may be too complex for the value it addshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Too%20Complex%22
on Aug 15, 2018https://github.com/microsoft/TypeScript/issues/13095#event-1790824820
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Aug 15, 2018https://github.com/microsoft/TypeScript/issues/13095#issuecomment-413313739
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 15, 2018https://github.com/microsoft/TypeScript/issues/13095#event-1790825917
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/13095
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/13095
Domain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20LS%3A%20Quick%20Info%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Too ComplexAn issue which adding support for may be too complex for the value it addshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Too%20Complex%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.