René's URL Explorer Experiment


Title: Optional abstract members · Issue #6413 · microsoft/TypeScript · GitHub

Open Graph Title: Optional abstract members · Issue #6413 · microsoft/TypeScript

X Title: Optional abstract members · Issue #6413 · microsoft/TypeScript

Description: I want to be able to make the implementation optional for abstract member, but it seems like it is not doable today. abstract class Component { public abstract setText?(l: GetLocalization): void; public abstract bindInteractions?(): void...

Open Graph Description: I want to be able to make the implementation optional for abstract member, but it seems like it is not doable today. abstract class Component { public abstract setText?(l: GetLocalization): void; p...

X Description: I want to be able to make the implementation optional for abstract member, but it seems like it is not doable today. abstract class Component { public abstract setText?(l: GetLocalization): void; p...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Optional abstract members","articleBody":"I want to be able to make the implementation optional for abstract member, but it seems like it is not doable today.\n\n``` typescript\nabstract class Component {\n    public abstract setText?(l: GetLocalization): void;\n    public abstract bindInteractions?(): void;\n}\n```\n\nI have some component classes and they MUST extend the base component class and optionally implement certain methods with a certain signature. Right now, I can only rely on good documentation.\n\n``` typescript\nclass Post extends Component {\n    public setText(l: GetLocalization): void {\n        //...\n    }\n    // Though I don't want to implement bindInteractions method.\n}\n```\n\nI want the power of auto-completion to also kick in.\n## Why is this useful?\n\nIt is useful for classes with life cycle methods.\n","author":{"url":"https://github.com/tinganho","@type":"Person","name":"tinganho"},"datePublished":"2016-01-09T07:38:37Z","url":"https://github.com/microsoft/TypeScript/issues/6413"}

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:45dc01da-6e33-54b4-ed66-7ee83a0630c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA77C:10531B:271BDEA:320A040:6B01DCF8
html-safe-nonceb25d4de8fc2e74068701b96dc23d9738a7380b632cfc89429e1bcdf8b08ba9c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzdDOjEwNTMxQjoyNzFCREVBOjMyMEEwNDA6NkIwMURDRjgiLCJ2aXNpdG9yX2lkIjoiMjY5MDc1NzEyNTM3ODAwNjI2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac53f45b91476ae08fb5704f1df40661ed05b1d09e8d1b9f68f25d0073163f5554
hovercard-subject-tagissue:125744616
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/6413/issue_layout
twitter:imagehttps://opengraph.githubassets.com/90bb8415d2042f8e61a31a05bea680a28f748d341b347c0fbcb1de2df00915d9/microsoft/TypeScript/issues/6413
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/90bb8415d2042f8e61a31a05bea680a28f748d341b347c0fbcb1de2df00915d9/microsoft/TypeScript/issues/6413
og:image:altI want to be able to make the implementation optional for abstract member, but it seems like it is not doable today. abstract class Component { public abstract setText?(l: GetLocalization): void; p...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametinganho
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/6413#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F6413
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%2F6413
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/6413
Reloadhttps://github.com/microsoft/TypeScript/issues/6413
Reloadhttps://github.com/microsoft/TypeScript/issues/6413
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/6413
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/6413
Optional abstract membershttps://github.com/microsoft/TypeScript/issues/6413#top
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/tinganho
Tingan Ho (tinganho)https://github.com/tinganho
on Jan 9, 2016https://github.com/microsoft/TypeScript/issues/6413#issue-125744616
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Jan 11, 2016https://github.com/microsoft/TypeScript/issues/6413#event-511412149
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jan 11, 2016https://github.com/microsoft/TypeScript/issues/6413#issuecomment-170634385
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 11, 2016https://github.com/microsoft/TypeScript/issues/6413#issuecomment-170737032
https://github.com/tinganho
Tingan Ho (tinganho)https://github.com/tinganho
on Jan 12, 2016https://github.com/microsoft/TypeScript/issues/6413#issuecomment-170774824
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Jan 12, 2016https://github.com/microsoft/TypeScript/issues/6413#issuecomment-170977324
https://github.com/tinganho
Tingan Ho (tinganho)https://github.com/tinganho
on Jan 13, 2016https://github.com/microsoft/TypeScript/issues/6413#issuecomment-171143860
Tingan Ho (tinganho)https://github.com/tinganho
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 13, 2016https://github.com/microsoft/TypeScript/issues/6413#event-513227049
https://github.com/vilicvane
vilicvane (vilicvane)https://github.com/vilicvane
on Jun 23, 2017https://github.com/microsoft/TypeScript/issues/6413#issuecomment-310573547
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
https://github.com/valotas
Georgios Valotasios (valotas)https://github.com/valotas
on Jul 9, 2017https://github.com/microsoft/TypeScript/issues/6413#issuecomment-313913969
https://github.com/sapjax
sapjax (sapjax)https://github.com/sapjax
on Jan 31, 2018https://github.com/microsoft/TypeScript/issues/6413#issuecomment-361869751
https://github.com/laughinghan
Han Seoul-Oh (laughinghan)https://github.com/laughinghan
on Mar 23, 2018https://github.com/microsoft/TypeScript/issues/6413#issuecomment-375767513
https://github.com/laughinghan
Han Seoul-Oh (laughinghan)https://github.com/laughinghan
on Mar 23, 2018https://github.com/microsoft/TypeScript/issues/6413#issuecomment-375771148
Georgios Valotasios (@valotas)https://github.com/valotas
don't ever appear to be inferredhttp://www.typescriptlang.org/play/#src=class%20Parent%20%7B%0D%0A%20%20%20%20optionalMethod%3F(s%3A%20string)%3A%20void%3B%0D%0A%7D%0D%0Aclass%20Child%20extends%20Parent%20%7B%0D%0A%20%20%20%20optionalMethod(s)%20%7B%0D%0A%20%20%20%20%20%20%20%20s%20%2F%2F%20(parameter)%20s%3A%20any%0D%0A%20%20%20%20%7D%0D%0A%7D%0D%0A%0D%0Aabstract%20class%20AbstractParent%20%7B%0D%0A%20%20%20%20abstract%20abstractMethod(s%3A%20string)%3A%20void%3B%0D%0A%7D%0D%0Aclass%20ConcreteChild%20extends%20AbstractParent%20%7B%0D%0A%20%20%20%20abstractMethod(s)%20%7B%0D%0A%20%20%20%20%20%20%20%20s%20%2F%2F%20(parameter)%20s%3A%20any%0D%0A%20%20%20%20%7D%0D%0A%7D%0D%0A%0D%0Ainterface%20Iface%20%7B%0D%0A%20%20%20%20method(s%3A%20string)%3A%20void%3B%0D%0A%7D%0D%0Aclass%20Klass%20implements%20Iface%20%7B%0D%0A%20%20%20%20method(s)%20%7B%0D%0A%20%20%20%20%20%20%20%20s%20%2F%2F%20(parameter)%20s%3A%20any%0D%0A%20%20%20%20%7D%0D%0A%7D
https://github.com/karol-depka
Karol Depka Pradzinski (karol-depka)https://github.com/karol-depka
on Jul 3, 2018https://github.com/microsoft/TypeScript/issues/6413#issuecomment-402309801
https://github.com/Zarel
Guangcong Luo (Zarel)https://github.com/Zarel
on Dec 28, 2020https://github.com/microsoft/TypeScript/issues/6413#issuecomment-751671759
Jonathan Seitz (jonseitz)https://github.com/jonseitz
on Sep 24, 2021https://github.com/microsoft/TypeScript/issues/6413#event-5356181624
Make populate method optionalhttps://github.com/seas-computing/course-planner/commit/8d87464811a997ffec4d8e3c2cba814595fb4664
8d87464https://github.com/seas-computing/course-planner/commit/8d87464811a997ffec4d8e3c2cba814595fb4664
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/6413
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/6413
Needs More InfoThe issue still hasn't been fully clarifiedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20More%20Info%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.