René's URL Explorer Experiment


Title: Typescript hover hints show wrong types · Issue #23747 · microsoft/TypeScript · GitHub

Open Graph Title: Typescript hover hints show wrong types · Issue #23747 · microsoft/TypeScript

X Title: Typescript hover hints show wrong types · Issue #23747 · microsoft/TypeScript

Description: From Nicolas Fernandez (@burabure) on April 26, 2018 22:28 Issue Type: Bug I managed to confuse the ts language type hints, when you hover over the variables it shows a generic type, but forcing a type error on the same variable shows th...

Open Graph Description: From Nicolas Fernandez (@burabure) on April 26, 2018 22:28 Issue Type: Bug I managed to confuse the ts language type hints, when you hover over the variables it shows a generic type, but forcing a ...

X Description: From Nicolas Fernandez (@burabure) on April 26, 2018 22:28 Issue Type: Bug I managed to confuse the ts language type hints, when you hover over the variables it shows a generic type, but forcing a ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typescript hover hints show wrong types","articleBody":"_From @burabure on April 26, 2018 22:28_\n\nIssue Type: \u003cb>Bug\u003c/b>\r\n\r\nI managed to confuse the ts language type hints, when you hover over the variables it shows a generic type, but forcing a type error on the same variable shows the correct type on the error.\r\nThis caused a couple hours of me looking over complex types trying to figure out why it showed me a variable as a generic one.\r\n\r\n![tsvscode](https://user-images.githubusercontent.com/3132298/39335042-bb7e7f36-4987-11e8-9da5-d9bb8851b1f1.gif)\r\n\r\nHere's the code that reproduces the error:\r\n```tsx\r\nimport React from 'react'\r\n\r\ninterface IFooProps\u003cS> {\r\n  children: (state: S) => JSX.Element\r\n  initialState: S,\r\n}\r\n\r\nclass Foo\u003cS extends {}> extends React.Component\u003cIFooProps\u003cS>,S> {\r\n  state = this.props.initialState\r\n\r\n  public render() {\r\n    return \u003c>{this.props.children(this.state)}\u003c/>\r\n  }\r\n}\r\n\r\ninterface IBarProps {\r\n  test: 'hello',\r\n} \r\n\r\nconst Bar = (props: IBarProps) => (\r\n  \u003cFoo initialState={props} >\r\n    {(state) => \u003c>{state.test}\u003c/>}\r\n  \u003c/Foo>\r\n)\r\n```\r\n\r\nusing these deps for example:\r\n```json\r\n{\r\n  \"typescript\": \"^2.8.1\",\r\n  \"react\": \"^16.3.1\",\r\n  \"@types/react\": \"^16.3.12\",\r\n}\r\n```\r\n\r\nVS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:34:44.222Z)\r\nOS version: Linux x64 4.13.0-37-generic\r\n\r\n\u003cdetails>\r\n\u003csummary>System Info\u003c/summary>\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz (4 x 2593)|\r\n|Load (avg)|4, 4, 4|\r\n|Memory (System)|19.31GB (0.66GB free)|\r\n|Process Argv|/usr/share/code/code .|\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n\u003c/details>\u003cdetails>\u003csummary>Extensions (9)\u003c/summary>\r\n\r\nExtension|Author (truncated)|Version\r\n---|---|---\r\nBookmarks|ale|0.19.0\r\nnpm-intellisense|chr|1.3.0\r\ngithistory|don|0.4.0\r\ntslint|eg2|1.0.28\r\nprettier-vscode|esb|1.3.1\r\natom-keybindings|ms-|3.0.4\r\ndebugger-for-chrome|msj|4.3.0\r\nsnippet-creator|nik|0.0.4\r\ncode-spell-checker|str|1.6.9\r\n\r\n(2 theme extensions excluded)\r\n\r\n\u003c/details>\r\n\u003c!-- generated by issue reporter -->\n\n_Copied from original issue: Microsoft/vscode#48785_","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2018-04-27T21:57:23Z","url":"https://github.com/microsoft/TypeScript/issues/23747"}

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:c820b47c-ffe4-5e2b-250b-3ad254c4c42c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE1D2:21E3E7:E64513:130652D:6B010016
html-safe-nonce0be22e6405cfc6a7117138c136b3d021983d6d9e75a4ab0e9e5960b42e7aa9d1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUQyOjIxRTNFNzpFNjQ1MTM6MTMwNjUyRDo2QjAxMDAxNiIsInZpc2l0b3JfaWQiOiI1NTA2Mzg3MzM1MDEwMzg1OTQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1e11f57d17028d4c5c0c21a2baa0326168a796f9b185386bf18f60995738852b
hovercard-subject-tagissue:318561424
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/23747/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2a16ce29f63101db5e4bb6c873540b064921d27f8f68a2d1d2c72c34ccd61f68/microsoft/TypeScript/issues/23747
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2a16ce29f63101db5e4bb6c873540b064921d27f8f68a2d1d2c72c34ccd61f68/microsoft/TypeScript/issues/23747
og:image:altFrom Nicolas Fernandez (@burabure) on April 26, 2018 22:28 Issue Type: Bug I managed to confuse the ts language type hints, when you hover over the variables it shows a generic type, but forcing a ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemjbvz
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/23747#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F23747
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%2F23747
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/23747
Reloadhttps://github.com/microsoft/TypeScript/issues/23747
Reloadhttps://github.com/microsoft/TypeScript/issues/23747
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/23747
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/23747
Typescript hover hints show wrong typeshttps://github.com/microsoft/TypeScript/issues/23747#top
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.9https://github.com/microsoft/TypeScript/milestone/67
https://github.com/mjbvz
Matt Bierner (mjbvz)https://github.com/mjbvz
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#issue-318561424
Nicolas Fernandez (@burabure)https://github.com/burabure
https://user-images.githubusercontent.com/3132298/39335042-bb7e7f36-4987-11e8-9da5-d9bb8851b1f1.gif
microsoft/vscode#48785https://github.com/microsoft/vscode/issues/48785
Matt Bierner (mjbvz)https://github.com/mjbvz
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#event-1599718143
Matt Bierner (mjbvz)https://github.com/mjbvz
javascripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22javascript%22
javascripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22javascript%22
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#event-1599718148
Matt Bierner (mjbvz)https://github.com/mjbvz
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#event-1599718886
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#issuecomment-385107664
#22415https://github.com/microsoft/TypeScript/pull/22415
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#event-1599739073
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.9https://github.com/microsoft/TypeScript/milestone/67
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#event-1599739125
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 27, 2018https://github.com/microsoft/TypeScript/issues/23747#event-1599739158
microsofthttps://github.com/microsoft
on Jul 31, 2018https://github.com/microsoft/TypeScript/issues/23747#event-1763324328
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/23747
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/23747
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.9https://github.com/microsoft/TypeScript/milestone/67
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.