René's URL Explorer Experiment


Title: Cannot infer from usage when generic class does not have a member or function parameter/return value of the generic type. · Issue #10609 · microsoft/TypeScript · GitHub

Open Graph Title: Cannot infer from usage when generic class does not have a member or function parameter/return value of the generic type. · Issue #10609 · microsoft/TypeScript

X Title: Cannot infer from usage when generic class does not have a member or function parameter/return value of the generic type. · Issue #10609 · microsoft/TypeScript

Description: TypeScript Version: 2.1.0-dev.20160830 Code interface A { test(value: Object): value is T; // a: T; // No error if uncommented. // or test(value: T | Object): value is T; } type B = T | A; function f1(b: B) {} function f2<...

Open Graph Description: TypeScript Version: 2.1.0-dev.20160830 Code interface A { test(value: Object): value is T; // a: T; // No error if uncommented. // or test(value: T | Object): value is T; } type B = T | A;...

X Description: TypeScript Version: 2.1.0-dev.20160830 Code interface A<T> { test(value: Object): value is T; // a: T; // No error if uncommented. // or test(value: T | Object): value is T; } type B<T>...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot infer from usage when generic class does not have a member or function parameter/return value of the generic type.","articleBody":"**TypeScript Version:**  2.1.0-dev.20160830\n\n**Code**\n\n``` ts\ninterface A\u003cT> {\n    test(value: Object): value is T;\n    // a: T;  // No error if uncommented.\n    // or test(value: T | Object): value is T;\n}\n\ntype B\u003cT> = T | A\u003cT>;\n\nfunction f1\u003cT>(b: B\u003cT>) {}\n\nfunction f2\u003cT>(b: B\u003cT>) {\n    f1(b); // The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the type arguments explicitly.\n           //   Type argument candidate 'T' is not a valid type argument because it is not a supertype of candidate 'T'.\n}\n```\n\n**Expected behavior:**\nNo error.\n\n**Actual behavior:** \nThe error reported with the code.\n\nNote that this may seem same as #8619, however here, adding a member of type T, or a function with a parameter/return value of type T, solves the issue.\n","author":{"url":"https://github.com/stephanedr","@type":"Person","name":"stephanedr"},"datePublished":"2016-08-30T14:36:55Z","url":"https://github.com/microsoft/TypeScript/issues/10609"}

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:735c5787-5d20-08dd-3d93-192a31367c50
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC5D4:24ACB9:F5C7E4:1442CDD:6B0101C6
html-safe-noncebe83c930ec7288eb1a7fc9d4115c86cb024e2eab61b36e3288153992bd79d2e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUQ0OjI0QUNCOTpGNUM3RTQ6MTQ0MkNERDo2QjAxMDFDNiIsInZpc2l0b3JfaWQiOiI1NDQwMDYyNDcwMDQ1NjMwOTE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2b70a124edadac5d05293c5ee2823bd01765c79af86f64c51579c46d4838d23d
hovercard-subject-tagissue:174036830
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/10609/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a3994d0723d747546fa960389a02b99b1a5350efacebfbd38fc2426a0e361a87/microsoft/TypeScript/issues/10609
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3994d0723d747546fa960389a02b99b1a5350efacebfbd38fc2426a0e361a87/microsoft/TypeScript/issues/10609
og:image:altTypeScript Version: 2.1.0-dev.20160830 Code interface A { test(value: Object): value is T; // a: T; // No error if uncommented. // or test(value: T | Object): value is T; } type B = T | A;...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamestephanedr
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/10609#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F10609
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%2F10609
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/10609
Reloadhttps://github.com/microsoft/TypeScript/issues/10609
Reloadhttps://github.com/microsoft/TypeScript/issues/10609
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/10609
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10609
Cannot infer from usage when generic class does not have a member or function parameter/return value of the generic type.https://github.com/microsoft/TypeScript/issues/10609#top
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
https://github.com/stephanedr
stephanedrhttps://github.com/stephanedr
on Aug 30, 2016https://github.com/microsoft/TypeScript/issues/10609#issue-174036830
#8619https://github.com/microsoft/TypeScript/issues/8619
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Aug 30, 2016https://github.com/microsoft/TypeScript/issues/10609#issuecomment-243524107
https://github.com/Microsoft/TypeScript/wiki/FAQ#why-doesnt-type-inference-work-on-this-interface-interface-foot---https://github.com/Microsoft/TypeScript/wiki/FAQ#why-doesnt-type-inference-work-on-this-interface-interface-foot---
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
on Aug 30, 2016https://github.com/microsoft/TypeScript/issues/10609#event-772533456
https://github.com/stephanedr
stephanedrhttps://github.com/stephanedr
on Aug 30, 2016https://github.com/microsoft/TypeScript/issues/10609#issuecomment-243546526
https://github.com/stephanedr
stephanedrhttps://github.com/stephanedr
on Aug 30, 2016https://github.com/microsoft/TypeScript/issues/10609#issuecomment-243547212
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Aug 30, 2016https://github.com/microsoft/TypeScript/issues/10609#issuecomment-243612525
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 28, 2017https://github.com/microsoft/TypeScript/issues/10609#event-979339828
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/10609#event-1689911557
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/10609
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/10609
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%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.