René's URL Explorer Experiment


Title: Support type-checking of computed properties for constants and Symbols · Issue #5579 · microsoft/TypeScript · GitHub

Open Graph Title: Support type-checking of computed properties for constants and Symbols · Issue #5579 · microsoft/TypeScript

X Title: Support type-checking of computed properties for constants and Symbols · Issue #5579 · microsoft/TypeScript

Description: On Angular we are considering using ES6 computed prototype methods as part of Angular’s component api but we realized that typescript doesn’t allow us to express this in a type-safe way. I’m wondering if this is a feature that could be a...

Open Graph Description: On Angular we are considering using ES6 computed prototype methods as part of Angular’s component api but we realized that typescript doesn’t allow us to express this in a type-safe way. I’m wonder...

X Description: On Angular we are considering using ES6 computed prototype methods as part of Angular’s component api but we realized that typescript doesn’t allow us to express this in a type-safe way. I’m wonder...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support type-checking of computed properties for constants and Symbols","articleBody":"On Angular we are considering using ES6 computed prototype methods as part of Angular’s component api but we realized that typescript doesn’t allow us to express this in a type-safe way.\n\nI’m wondering if this is a feature that could be added to typescript or if there is a fundamental issue that would prevent typescript from supporting this. Example:\n\n```\n{Component, onInit, OnInit} from ‘angular2/core';\n\n@Component({\n  selector: 'my-component'\n})\nclass MyComponent implements OnInit {\n  [onInit](param1, param2){ return something; }\n}\n```\n\nWhere `onInit` is a const string or ES Symbol, and `OnInit` is an interface with the signature of the `[onInit]` method. `onInit` is a an optional life-cycle hook that Angular will call if the component has this property name.\n\nThe reason why we find this api style attractive is that it removes the possibility of name-collisions, which means that we are free to add support for more hooks in the future without affecting any existing components.\n\nPS: ES Observables are already using Symbols to define the observable interface, so this feature would allow creation of Observable interface. I expect more libs will want to take advantage of this api style as computed property and Symbol support becomes better.\n\nRelated issue: #4653\n","author":{"url":"https://github.com/IgorMinar","@type":"Person","name":"IgorMinar"},"datePublished":"2015-11-09T23:52:04Z","url":"https://github.com/microsoft/TypeScript/issues/5579"}

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:7e695cd1-f1f7-803b-a252-97e15851040d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id84C4:3C21B:11503F6:163D9A4:6B01097B
html-safe-nonce983112ded60ec6bf955280d37d3a5e89585faa12f73700e0831758a33ad56e88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEM0OjNDMjFCOjExNTAzRjY6MTYzRDlBNDo2QjAxMDk3QiIsInZpc2l0b3JfaWQiOiIxODU3MjA1MTQ1NDczOTc2NzAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac8eea4b49398fb465dd1904c98b75031a8a5810a61a7f53850866796bb3e6698b
hovercard-subject-tagissue:115994355
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/5579/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6ba58e2a345dbb8815485c6ae215766e3d6298672a8880fcb20f471defaf7075/microsoft/TypeScript/issues/5579
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6ba58e2a345dbb8815485c6ae215766e3d6298672a8880fcb20f471defaf7075/microsoft/TypeScript/issues/5579
og:image:altOn Angular we are considering using ES6 computed prototype methods as part of Angular’s component api but we realized that typescript doesn’t allow us to express this in a type-safe way. I’m wonder...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameIgorMinar
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/5579#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F5579
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%2F5579
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/5579
Reloadhttps://github.com/microsoft/TypeScript/issues/5579
Reloadhttps://github.com/microsoft/TypeScript/issues/5579
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/5579
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5579
#15473https://github.com/microsoft/TypeScript/pull/15473
Support type-checking of computed properties for constants and Symbolshttps://github.com/microsoft/TypeScript/issues/5579#top
#15473https://github.com/microsoft/TypeScript/pull/15473
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
https://github.com/IgorMinar
Igor Minar (IgorMinar)https://github.com/IgorMinar
on Nov 9, 2015https://github.com/microsoft/TypeScript/issues/5579#issue-115994355
#4653https://github.com/microsoft/TypeScript/issues/4653
Nexthttps://github.com/microsoft/TypeScript/issues/5579?timeline_page=1
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Nov 10, 2015https://github.com/microsoft/TypeScript/issues/5579#event-459504216
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Nov 10, 2015https://github.com/microsoft/TypeScript/issues/5579#issuecomment-155239922
#4653https://github.com/microsoft/TypeScript/issues/4653
Vladimir Matveev (@vladima)https://github.com/vladima
#2012https://github.com/microsoft/TypeScript/issues/2012
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Nov 10, 2015https://github.com/microsoft/TypeScript/issues/5579#event-459507260
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Nov 10, 2015https://github.com/microsoft/TypeScript/issues/5579#issuecomment-155439218
Igor Minar (@IgorMinar)https://github.com/IgorMinar
https://github.com/benlesh
Ben Lesh (benlesh)https://github.com/benlesh
on Apr 14, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-210129916
#8099https://github.com/microsoft/TypeScript/issues/8099
https://github.com/benlesh
Ben Lesh (benlesh)https://github.com/benlesh
on Apr 14, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-210132905
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Apr 14, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-210149902
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Apr 20, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-212280065
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Symbol shimhttps://github.com/dojo/core/blob/master/src/Symbol.ts
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Apr 20, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-212519270
#2012https://github.com/microsoft/TypeScript/issues/2012
https://github.com/benlesh
Ben Lesh (benlesh)https://github.com/benlesh
on Apr 20, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-212523882
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Apr 21, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-212761103
https://github.com/shlomiassaf
Shlomi Assaf (shlomiassaf)https://github.com/shlomiassaf
on Jul 24, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-234801931
https://github.com/tomdale
Tom Dale (tomdale)https://github.com/tomdale
on Aug 19, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-241058661
https://github.com/calebmer
Caleb Meredith (calebmer)https://github.com/calebmer
on Dec 16, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-267667439
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Dec 24, 2016https://github.com/microsoft/TypeScript/issues/5579#issuecomment-269069884
Observables (using Symbol.observable)https://github.com/tc39/proposal-observable
async iterators (using Symbol.asyncIterator)https://github.com/tc39/proposal-async-iteration
most.jshttps://github.com/cujojs/most/blob/master/docs/api.md#mostfrom
https://github.com/whatisaphone
whatisaphone (whatisaphone)https://github.com/whatisaphone
on May 4, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-299301894
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
#15534https://github.com/microsoft/TypeScript/issues/15534
#15534https://github.com/microsoft/TypeScript/issues/15534
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on May 4, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-299304213
#15534https://github.com/microsoft/TypeScript/issues/15534
#15534https://github.com/microsoft/TypeScript/issues/15534
https://github.com/whatisaphone
whatisaphone (whatisaphone)https://github.com/whatisaphone
on May 4, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-299312223
https://github.com/jacobrask
Jacob Rask (jacobrask)https://github.com/jacobrask
on May 13, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-301270931
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on May 13, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-301273502
Jacob Rask (@jacobrask)https://github.com/jacobrask
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on May 13, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-301273661
johnsofthttps://github.com/johnsoft
https://github.com/whatisaphone
whatisaphone (whatisaphone)https://github.com/whatisaphone
on May 18, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-302482773
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on May 19, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-302639826
johnsofthttps://github.com/johnsoft
https://github.com/whatisaphone
whatisaphone (whatisaphone)https://github.com/whatisaphone
on May 19, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-302792874
https://github.com/nbransby
Nicholas Bransby-Williams (nbransby)https://github.com/nbransby
on Nov 6, 2017https://github.com/microsoft/TypeScript/issues/5579#issuecomment-342147162
Ron Buckton (rbuckton)https://github.com/rbuckton
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#15473https://github.com/microsoft/TypeScript/pull/15473
on Nov 16, 2017https://github.com/microsoft/TypeScript/issues/5579#event-1344257939
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
In DiscussionNot yet reached consensushttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22In%20Discussion%22
on Nov 20, 2017https://github.com/microsoft/TypeScript/issues/5579#event-1350710786
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
on Nov 20, 2017https://github.com/microsoft/TypeScript/issues/5579#event-1350710846
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/5579#event-1689623354
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/5579
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5579
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
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.