René's URL Explorer Experiment


Title: Make `this` in object literal always of type `any` by sandersn · Pull Request #8389 · microsoft/TypeScript · GitHub

Open Graph Title: Make `this` in object literal always of type `any` by sandersn · Pull Request #8389 · microsoft/TypeScript

X Title: Make `this` in object literal always of type `any` by sandersn · Pull Request #8389 · microsoft/TypeScript

Description: TypeScript is a superset of JavaScript that compiles to clean JavaScript output. - Make `this` in object literal always of type `any` by sandersn · Pull Request #8389 · microsoft/TypeScript

Open Graph Description: Fixes #8191 again, but re-breaks #8110 and #7801. Previously, this was implicitly typed by the shape of its containing object literal. This is not correct for JavaScript-style inheritance uses of o...

X Description: Fixes #8191 again, but re-breaks #8110 and #7801. Previously, this was implicitly typed by the shape of its containing object literal. This is not correct for JavaScript-style inheritance uses of o...

Opengraph URL: https://github.com/microsoft/TypeScript/pull/8389

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5dbdbebd-87ee-3aa4-00ab-abba0c1bae57
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA5F6:7FDD5:D112C0:12A8ED9:6A638B13
html-safe-noncec32d0493b2d5502e3435149273532ec0db8b23c4b1c4fc5ca1d8bb9423740d3b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUY2OjdGREQ1OkQxMTJDMDoxMkE4RUQ5OjZBNjM4QjEzIiwidmlzaXRvcl9pZCI6IjQ4NjgzMDQ3OTI4MjAzNTM4MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6e419c11bca32d8bdcb1671adb7547d18cb5d1950e1d831a1f034642d89c5892
hovercard-subject-tagpull_request:68443905
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/microsoft/TypeScript/8389/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a77208a31208a2a1d259a695fa2837ace0c6827aed1b9dd4512417a096a68f20/microsoft/TypeScript/pull/8389
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a77208a31208a2a1d259a695fa2837ace0c6827aed1b9dd4512417a096a68f20/microsoft/TypeScript/pull/8389
og:image:altFixes #8191 again, but re-breaks #8110 and #7801. Previously, this was implicitly typed by the shape of its containing object literal. This is not correct for JavaScript-style inheritance uses of o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesandersn
hostnamegithub.com
expected-hostnamegithub.com
None4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659
turbo-cache-controlno-cache
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
release3a0a9f049e072eb8e5795dfddcefdba9e277501d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/pull/8389#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F8389
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F8389
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/pull/8389
Reloadhttps://github.com/microsoft/TypeScript/pull/8389
Reloadhttps://github.com/microsoft/TypeScript/pull/8389
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/8389
microsoft https://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Notifications https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Fork 13.6k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Star 110k https://github.com/login?return_to=%2Fmicrosoft%2FTypeScript
Code https://github.com/microsoft/TypeScript
Issues 5k+ https://github.com/microsoft/TypeScript/issues
Pull requests 21 https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality 0 https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
Code https://github.com/microsoft/TypeScript
Issues https://github.com/microsoft/TypeScript/issues
Pull requests https://github.com/microsoft/TypeScript/pulls
Actions https://github.com/microsoft/TypeScript/actions
Projects https://github.com/microsoft/TypeScript/projects
Models https://github.com/microsoft/TypeScript/models
Wiki https://github.com/microsoft/TypeScript/wiki
Security and quality https://github.com/microsoft/TypeScript/security
Insights https://github.com/microsoft/TypeScript/pulse
sandersnhttps://github.com/sandersn
masterhttps://github.com/microsoft/TypeScript/tree/master
make-object-literal-this-any-typedhttps://github.com/microsoft/TypeScript/tree/make-object-literal-this-any-typed
Conversationhttps://github.com/microsoft/TypeScript/pull/8389
Commits2 (2)https://github.com/microsoft/TypeScript/pull/8389/commits
Checkshttps://github.com/microsoft/TypeScript/pull/8389/checks
Files changedhttps://github.com/microsoft/TypeScript/pull/8389/files
Make this in object literal always of type anyhttps://github.com/microsoft/TypeScript/pull/8389#top
sandersnhttps://github.com/sandersn
masterhttps://github.com/microsoft/TypeScript/tree/master
make-object-literal-this-any-typedhttps://github.com/microsoft/TypeScript/tree/make-object-literal-this-any-typed
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Apr 29, 2016https://github.com/microsoft/TypeScript/pull/8389#issue-151982872
#8191https://github.com/microsoft/TypeScript/issues/8191
#8110https://github.com/microsoft/TypeScript/issues/8110
#7801https://github.com/microsoft/TypeScript/issues/7801
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/8389
https://github.com/sandersn
Make this in object literal always of type anyhttps://github.com/microsoft/TypeScript/pull/8389/commits/0a2ba0cc1582f37ea3849c2e7912b019459420b6
0a2ba0chttps://github.com/microsoft/TypeScript/pull/8389/commits/0a2ba0cc1582f37ea3849c2e7912b019459420b6
https://github.com/msftclas
msftclashttps://github.com/msftclas
cla-not-required https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3Acla-not-required
Apr 29, 2016https://github.com/microsoft/TypeScript/pull/8389#event-646299119
https://github.com/sandersn
sandersnhttps://github.com/sandersn
Apr 29, 2016https://github.com/microsoft/TypeScript/pull/8389#issuecomment-215900462
@ahejlsberghttps://github.com/ahejlsberg
@mhegazyhttps://github.com/mhegazy
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/8389
https://github.com/mhegazy
mhegazyhttps://github.com/mhegazy
Apr 29, 2016https://github.com/microsoft/TypeScript/pull/8389#issuecomment-215901303
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/8389
https://github.com/mhegazy
mhegazyhttps://github.com/mhegazy
Apr 29, 2016https://github.com/microsoft/TypeScript/pull/8389#issuecomment-215901310
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/8389
https://github.com/sandersn
Add --noImplicitThis test for object literalshttps://github.com/microsoft/TypeScript/pull/8389/commits/8d45a73f126b6c5779bb7ee07ae6923bfe9dbe8c
8d45a73https://github.com/microsoft/TypeScript/pull/8389/commits/8d45a73f126b6c5779bb7ee07ae6923bfe9dbe8c
https://github.com/mhegazy
mhegazyhttps://github.com/mhegazy
Apr 30, 2016 https://github.com/microsoft/TypeScript/pull/8389#ref-issue-151806700
Object literal contextual typing where 'this' has type 'any' in lambda functions #8368 https://github.com/microsoft/TypeScript/issues/8368
https://github.com/sandersn
sandersnhttps://github.com/sandersn
d1b60f8https://github.com/microsoft/TypeScript/commit/d1b60f8bfb6ff63521b36ff9cff024da2d544363
Apr 30, 2016https://github.com/microsoft/TypeScript/pull/8389#event-646393286
https://github.com/sandersn
sandersnhttps://github.com/sandersn
April 30, 2016 02:15https://github.com/microsoft/TypeScript/pull/8389#event-646393332
this in function declarations inside object literals should be typed #8110 https://github.com/microsoft/TypeScript/issues/8110
No referencing/intellisense fo nested properties/functions within class #7801 https://github.com/microsoft/TypeScript/issues/7801
https://github.com/FranklinWhale
FranklinWhalehttps://github.com/FranklinWhale
Dec 9, 2016 https://github.com/microsoft/TypeScript/pull/8389#ref-issue-194520164
Option to make this in functions inside object literals typed #12785 https://github.com/microsoft/TypeScript/issues/12785
https://github.com/microsoft
microsofthttps://github.com/microsoft
Jun 19, 2018https://github.com/microsoft/TypeScript/pull/8389#event-1689834190
https://github.co/hiddenchars
https://github.com/microsoft/TypeScript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fpull%2F8389
Incorrect/overly strong this inference for POJOs https://github.com/microsoft/TypeScript/issues/8191
Please reload this pagehttps://github.com/microsoft/TypeScript/pull/8389
https://github.com/sandersn
https://github.com/mhegazy
https://github.com/msftclas
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.