René's URL Explorer Experiment


Title: Suggestion: Generic Parameter Overloads · Issue #209 · microsoft/TypeScript · GitHub

Open Graph Title: Suggestion: Generic Parameter Overloads · Issue #209 · microsoft/TypeScript

X Title: Suggestion: Generic Parameter Overloads · Issue #209 · microsoft/TypeScript

Description: Suggestion moved over from codeplex. The suggestion is to allow generic parameter overloads like the following: declare module Backbone { class Model{} class Events{} class ViewOptions {} class Collection

Open Graph Description: Suggestion moved over from codeplex. The suggestion is to allow generic parameter overloads like the following: declare module Backbone { class Model{} class Events{} class ViewOptions

X Description: Suggestion moved over from codeplex. The suggestion is to allow generic parameter overloads like the following: declare module Backbone { class Model{} class Events{} class ViewOptions<TModel ex...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: Generic Parameter Overloads","articleBody":"> Suggestion moved over from [codeplex](https://typescript.codeplex.com/workitem/2438/).\n\nThe suggestion is to allow generic parameter overloads like the following:\n\n``` typescript\ndeclare module Backbone {\n    class Model{}\n    class Events{}\n    class ViewOptions\u003cTModel extends Model> {}\n    class Collection\u003cTModel extends Model> {}\n\n    // Generic parameter overload\n    class View extends View\u003cBackbone.Model>;\n    class View\u003cTModel extends Model> extends Events { // Don't take as duplicate identifier\n        constructor(options?: ViewOptions\u003cTModel>);\n        model: TModel;\n        collection: Collection\u003cTModel>;\n    }\n}\n\n// With Generics Parameter overloads, old non-generic consumer\n// code works as before and does not need to change.\nclass MyView extends Backbone.View {\n}\nvar myView = new MyView();\nvar model = myView.model; // model is of type Backbone.Model\n\n// Can gradually introduce generic parameters to Views\nclass DerivedModel extends Backbone.Model { \n}\nvar myView2 = new Backbone.View\u003cDerivedModel>();\nvar model2 = myView2.model; // model2 is of type DerivedModel\n```\n\nThis is important because this would allow people to introduce generics in their library declarations without breaking large amounts of existing code for the consumers. We do this a lot in C#, and it is compatible with TypeScript design because it won't make any changes in the resulting javascript, and works pretty much like method overloads in TypeScript.\n\nRelated discussion: https://typescript.codeplex.com/discussions/452741\n","author":{"url":"https://github.com/omidkrad","@type":"Person","name":"omidkrad"},"datePublished":"2014-07-23T01:45:52Z","url":"https://github.com/microsoft/TypeScript/issues/209"}

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:526496fb-4cd8-1cfb-ddf6-2733776f27bc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBA0:3CFBC:104684B:166D6B3:6AFBFBCA
html-safe-noncee301d8c76e72fc5cdb38c835a5245770c698961838d0c47855ad3a5044257c6b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkEwOjNDRkJDOjEwNDY4NEI6MTY2RDZCMzo2QUZCRkJDQSIsInZpc2l0b3JfaWQiOiIxNjI2MzYxNDg1MjIxMTY2MDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfc4d41c5f7aada60bcf9251b4cef6716b9e5e530cf982a020c103e2203bb6e81
hovercard-subject-tagissue:38478228
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/209/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ec0c30e99da1c2f92bcc0ee8117b9d085ddd9823b8364001356b13308df552b1/microsoft/TypeScript/issues/209
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ec0c30e99da1c2f92bcc0ee8117b9d085ddd9823b8364001356b13308df552b1/microsoft/TypeScript/issues/209
og:image:altSuggestion moved over from codeplex. The suggestion is to allow generic parameter overloads like the following: declare module Backbone { class Model{} class Events{} class ViewOptions
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameomidkrad
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
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
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/209#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F209
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%2F209
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/209
Reloadhttps://github.com/microsoft/TypeScript/issues/209
Reloadhttps://github.com/microsoft/TypeScript/issues/209
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests335 (335)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/pulse
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/209
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/209
Suggestion: Generic Parameter Overloadshttps://github.com/microsoft/TypeScript/issues/209#top
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/omidkrad
Omid K. Rad (omidkrad)https://github.com/omidkrad
on Jul 23, 2014https://github.com/microsoft/TypeScript/issues/209#issue-38478228
codeplexhttps://typescript.codeplex.com/workitem/2438/
https://typescript.codeplex.com/discussions/452741https://typescript.codeplex.com/discussions/452741
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Suggestionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jul 30, 2014https://github.com/microsoft/TypeScript/issues/209#event-147014567
https://github.com/danquirk
Dan Quirk (danquirk)https://github.com/danquirk
on Jul 30, 2014https://github.com/microsoft/TypeScript/issues/209#issuecomment-50560154
https://github.com/omidkrad
Omid K. Rad (omidkrad)https://github.com/omidkrad
on Jul 30, 2014https://github.com/microsoft/TypeScript/issues/209#issuecomment-50566982
https://github.com/omidkrad
Omid K. Rad (omidkrad)https://github.com/omidkrad
on Jul 30, 2014https://github.com/microsoft/TypeScript/issues/209#issuecomment-50642506
https://github.com/mikecann
Mike Cann (mikecann)https://github.com/mikecann
on Aug 14, 2014https://github.com/microsoft/TypeScript/issues/209#issuecomment-52140968
https://github.com/johnnyreilly
John Reilly (johnnyreilly)https://github.com/johnnyreilly
on Aug 14, 2014https://github.com/microsoft/TypeScript/issues/209#issuecomment-52145178
https://github.com/sccolbert
S. Chris Colbert (sccolbert)https://github.com/sccolbert
on Dec 4, 2014https://github.com/microsoft/TypeScript/issues/209#issuecomment-65538572
https://github.com/omidkrad
Omid K. Rad (omidkrad)https://github.com/omidkrad
on Dec 4, 2014https://github.com/microsoft/TypeScript/issues/209#issuecomment-65700893
Dan Quirk (@danquirk)https://github.com/danquirk
https://github.com/RonPenton
Ron Penton (RonPenton)https://github.com/RonPenton
on Aug 31, 2017https://github.com/microsoft/TypeScript/issues/209#issuecomment-326451044
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 12, 2017https://github.com/microsoft/TypeScript/issues/209#issuecomment-328738367
Ron Penton (@RonPenton)https://github.com/RonPenton
#13487https://github.com/microsoft/TypeScript/pull/13487
Wesley Wigham (weswigham)https://github.com/weswigham
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 12, 2017https://github.com/microsoft/TypeScript/issues/209#event-1244565514
https://github.com/lukas-zech-software
Lukas Zech (lukas-zech-software)https://github.com/lukas-zech-software
on Sep 12, 2017https://github.com/microsoft/TypeScript/issues/209#issuecomment-328752318
Wesley Wigham (@weswigham)https://github.com/weswigham
Ron Penton (@RonPenton)https://github.com/RonPenton
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 12, 2017https://github.com/microsoft/TypeScript/issues/209#issuecomment-328757762
one interface declarationhttp://www.typescriptlang.org/play/#src=export%20interface%20Func%3CR%3Dvoid%2C%20P1%3Dnever%2C%20P2%3Dnever%3E%20%7B%20%20(param1%3A%20P1%2C%20param2%3A%20P2)%3A%20R%3B%20%7D%0D%0A%0D%0Aconst%20fn1%3A%20Func%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3D%20()%20%3D%3E%20%7B%7D%3B%0D%0Aconst%20fn2%3A%20Func%3Cstring%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3D%20()%20%3D%3E%20''%3B%0D%0Aconst%20fn3%3A%20Func%3Cstring%2C%20number%3E%20%20%20%20%20%20%20%20%20%20%3D%20(param1)%20%3D%3E%20''%3B%0D%0Aconst%20fn4%3A%20Func%3Cstring%2C%20number%2C%20boolean%3E%20%3D%20(param1%2C%20param2)%20%3D%3E%20''%3B
https://github.com/lukas-zech-software
Lukas Zech (lukas-zech-software)https://github.com/lukas-zech-software
on Sep 12, 2017https://github.com/microsoft/TypeScript/issues/209#issuecomment-328830188
https://github.com/RonPenton
Ron Penton (RonPenton)https://github.com/RonPenton
on Sep 12, 2017https://github.com/microsoft/TypeScript/issues/209#issuecomment-328884139
Wesley Wigham (@weswigham)https://github.com/weswigham
Lukas Zech (@lukas-zech-software)https://github.com/lukas-zech-software
https://github.com/liminf
liminfhttps://github.com/liminf
on Dec 15, 2017https://github.com/microsoft/TypeScript/issues/209#issuecomment-351890000
classic C++ factorial template metaprogramming examplehttps://en.wikipedia.org/wiki/Template_metaprogramming
microsofthttps://github.com/microsoft
on Jun 18, 2018https://github.com/microsoft/TypeScript/issues/209#event-1686902722
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/209
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/209
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%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.