René's URL Explorer Experiment


Title: Support specifying type of "this" in function implementations · Issue #229 · microsoft/TypeScript · GitHub

Open Graph Title: Support specifying type of "this" in function implementations · Issue #229 · microsoft/TypeScript

X Title: Support specifying type of "this" in function implementations · Issue #229 · microsoft/TypeScript

Description: Migrated issue from codeplex: https://typescript.codeplex.com/workitem/507 Currently typescript will type the "this" pointer in function callbacks as "any." Arrow syntax lets us capture "this" from the outer scope, and this can enable pr...

Open Graph Description: Migrated issue from codeplex: https://typescript.codeplex.com/workitem/507 Currently typescript will type the "this" pointer in function callbacks as "any." Arrow syntax lets us capture "this" from...

X Description: Migrated issue from codeplex: https://typescript.codeplex.com/workitem/507 Currently typescript will type the "this" pointer in function callbacks as "any." Arrow syntax lets us...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support specifying type of \"this\" in function implementations","articleBody":"Migrated issue from codeplex: https://typescript.codeplex.com/workitem/507\n\nCurrently typescript will type the \"this\" pointer in function callbacks as \"any.\" Arrow syntax lets us capture \"this\" from the outer scope, and this can enable proper typing. It would be nice to be able to provide\nan optional \"ambient this\" declaration in function signatures:\n\n```\n(declare this : MyType, first: number, second: string) : any;\n```\n\nThe rules would be:\n\n1) the declaration is obviously optional\n2) if specified, should be first parameter\n3) cannot be used with arrow syntax lambdas (should be compiler error)\n\nI know you can cast as needed to get the intellisense but I'd rather not put this responsibility on the implementer of the function. Ideally it should be part of the definition.\n\nExample with Sammy:\n\n```\nvar app = $.sammy(\"#view\", function() {\n     // define default route\n     this.get(\"#/\", function() { ... } \n});\n```\n\nIn the above case, typescript can only type this as any.\n\nThoughts?\n","author":{"url":"https://github.com/abergs","@type":"Person","name":"abergs"},"datePublished":"2014-07-24T11:04:25Z","url":"https://github.com/microsoft/TypeScript/issues/229"}

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:c3e0564e-6b03-6252-2a93-03352414f281
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD10E:76282:EF9D69:14BE9DB:6AFBF686
html-safe-nonceed65ec5ff3dcf194b49d4e0611bbeb11ecafa320fd8e5d59cf99cbe3efb4f47e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTBFOjc2MjgyOkVGOUQ2OToxNEJFOURCOjZBRkJGNjg2IiwidmlzaXRvcl9pZCI6IjgzNTU5MjI1OTYyOTc3MDA5OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaa6e17af30e51e7b409bd121dfe5463ec74811b73d66f17e6454975072d10131
hovercard-subject-tagissue:38618139
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/229/issue_layout
twitter:imagehttps://opengraph.githubassets.com/57ed87163563ca1bc20e84de7949cb2a86332b8676800a9e73b05f578a8a2e0e/microsoft/TypeScript/issues/229
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/57ed87163563ca1bc20e84de7949cb2a86332b8676800a9e73b05f578a8a2e0e/microsoft/TypeScript/issues/229
og:image:altMigrated issue from codeplex: https://typescript.codeplex.com/workitem/507 Currently typescript will type the "this" pointer in function callbacks as "any." Arrow syntax lets us capture "this" from...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameabergs
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/229#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F229
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%2F229
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/229
Reloadhttps://github.com/microsoft/TypeScript/issues/229
Reloadhttps://github.com/microsoft/TypeScript/issues/229
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/229
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/229
Support specifying type of "this" in function implementationshttps://github.com/microsoft/TypeScript/issues/229#top
DuplicateAn existing issue was already createdhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22
https://github.com/abergs
Anders Åberg (abergs)https://github.com/abergs
on Jul 24, 2014https://github.com/microsoft/TypeScript/issues/229#issue-38618139
https://typescript.codeplex.com/workitem/507https://typescript.codeplex.com/workitem/507
Nexthttps://github.com/microsoft/TypeScript/issues/229?timeline_page=1
https://github.com/Bartvds
Bart van der Schoor (Bartvds)https://github.com/Bartvds
on Jul 24, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-49996600
https://github.com/johnnyreilly
John Reilly (johnnyreilly)https://github.com/johnnyreilly
on Jul 24, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-49996757
https://github.com/abergs
Anders Åberg (abergs)https://github.com/abergs
on Jul 24, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-50013536
https://github.com/fdecampredon
François de Campredon (fdecampredon)https://github.com/fdecampredon
on Jul 24, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-50029105
Dan Quirk (danquirk)https://github.com/danquirk
Suggestionhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jul 24, 2014https://github.com/microsoft/TypeScript/issues/229#event-145290456
https://github.com/abergs
Anders Åberg (abergs)https://github.com/abergs
on Jul 25, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-50116310
François de Campredon (@fdecampredon)https://github.com/fdecampredon
https://github.com/fdecampredon
François de Campredon (fdecampredon)https://github.com/fdecampredon
on Jul 26, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-50234157
Anders Åberg (@abergs)https://github.com/abergs
https://github.com/basarat
Basarat Ali Syed (basarat)https://github.com/basarat
on Jul 28, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-50304772
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs Proposalhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Proposal%22
on Jul 28, 2014https://github.com/microsoft/TypeScript/issues/229#event-146462802
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 28, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-50406084
https://github.com/Microsoft/TypeScript/wiki/Writing-Good-Design-Proposalshttps://github.com/Microsoft/TypeScript/wiki/Writing-Good-Design-Proposals
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jul 30, 2014https://github.com/microsoft/TypeScript/issues/229#event-147031537
https://github.com/QueueHammer
Christopher Smith (QueueHammer)https://github.com/QueueHammer
on Aug 22, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-53081520
https://github.com/redexp
Sergii Kliuchnyk (redexp)https://github.com/redexp
on Aug 23, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-53152987
https://github.com/ivogabe
Ivo Gabe de Wolff (ivogabe)https://github.com/ivogabe
on Aug 23, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-53154083
Sergii Kliuchnyk (@redexp)https://github.com/redexp
https://github.com/redexp
Sergii Kliuchnyk (redexp)https://github.com/redexp
on Aug 23, 2014https://github.com/microsoft/TypeScript/issues/229#issuecomment-53155701
https://github.com/kobezzza
Andrey Kobets (kobezzza)https://github.com/kobezzza
on Jul 5, 2015https://github.com/microsoft/TypeScript/issues/229#issuecomment-118618142
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Sep 16, 2015https://github.com/microsoft/TypeScript/issues/229#issuecomment-140913339
#3694https://github.com/microsoft/TypeScript/issues/3694
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 16, 2015https://github.com/microsoft/TypeScript/issues/229#event-411542770
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
DuplicateAn existing issue was already createdhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%22
on Sep 16, 2015https://github.com/microsoft/TypeScript/issues/229#event-411542792
https://github.com/Zorgatone
Tommaso Ricci (Zorgatone)https://github.com/Zorgatone
on Sep 28, 2015https://github.com/microsoft/TypeScript/issues/229#issuecomment-143661813
https://github.com/distinctdan
Daniel Stone (distinctdan)https://github.com/distinctdan
on May 9, 2016https://github.com/microsoft/TypeScript/issues/229#issuecomment-217995986
https://github.com/QueueHammer
Christopher Smith (QueueHammer)https://github.com/QueueHammer
on May 11, 2016https://github.com/microsoft/TypeScript/issues/229#issuecomment-218348990
https://github.com/hraban
Hraban (hraban)https://github.com/hraban
on May 11, 2016https://github.com/microsoft/TypeScript/issues/229#issuecomment-218390984
Christopher Smith (@QueueHammer)https://github.com/QueueHammer
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on May 11, 2016https://github.com/microsoft/TypeScript/issues/229#issuecomment-218391915
#6739https://github.com/microsoft/TypeScript/pull/6739
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on May 11, 2016https://github.com/microsoft/TypeScript/issues/229#issuecomment-218402182
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
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
on May 11, 2016https://github.com/microsoft/TypeScript/issues/229#event-657472925
https://github.com/yankeeinlondon
Ken Snyder (yankeeinlondon)https://github.com/yankeeinlondon
on Oct 30, 2016https://github.com/microsoft/TypeScript/issues/229#issuecomment-257146754
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Oct 30, 2016https://github.com/microsoft/TypeScript/issues/229#issuecomment-257172012
https://www.typescriptlang.org/docs/handbook/functions.htmlhttps://www.typescriptlang.org/docs/handbook/functions.html
microsofthttps://github.com/microsoft
on Jun 18, 2018https://github.com/microsoft/TypeScript/issues/229#event-1686902899
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/229
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/229
DuplicateAn existing issue was already createdhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Duplicate%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.