René's URL Explorer Experiment


Title: `static abstract` methods and properties · Issue #34516 · microsoft/TypeScript · GitHub

Open Graph Title: `static abstract` methods and properties · Issue #34516 · microsoft/TypeScript

X Title: `static abstract` methods and properties · Issue #34516 · microsoft/TypeScript

Description: This is a continuation of #14600 which had two separate features proposed in the same issue (static members in interfaces and abstract static class members) Search Terms static abstract method property properties implement concrete Sugge...

Open Graph Description: This is a continuation of #14600 which had two separate features proposed in the same issue (static members in interfaces and abstract static class members) Search Terms static abstract method prop...

X Description: This is a continuation of #14600 which had two separate features proposed in the same issue (static members in interfaces and abstract static class members) Search Terms static abstract method prop...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`static abstract` methods and properties","articleBody":"This is a continuation of #14600 which had two separate features proposed in the same issue (static members in interfaces *and* abstract static class members)\r\n\r\n## Search Terms\r\n\r\nstatic abstract method property properties implement concrete\r\n\r\n## Suggestion\r\n\r\nCurrently, this code is illegal:\r\n```ts\r\nabstract class A {\r\n    static abstract doSomething(): void;\r\n}\r\n\r\n// Should be OK\r\nclass B extends A {\r\n    static doSomething() { }\r\n}\r\n\r\n// Should be an error; non-abstract class failed to implement abstract member\r\nclass C extends A {\r\n\r\n}\r\n```\r\n\r\nIt should be legal to have `abstract static` (`static abstract`?) members.\r\n\r\n## Use Cases\r\n\r\n(what are they?)\r\n\r\n## Unresolved Questions\r\n\r\n**What calls of abstract static methods are allowed?**\r\n\r\nLet's say you wrote a trivial hierarchy\r\n```ts\r\nabstract class A {\r\n    static abstract doSomething(): void;\r\n}\r\nclass B extends A {\r\n    static doSomething() { }\r\n}\r\n```\r\n\r\nFor an expression `x.doSomething()`, what are valid `x`s?\r\n\r\n#### Option 1: All of them\r\n\r\nBecause `this` isn't generic in `static` members, we should simply allow all invocations of abstract static methods. Otherwise code like this would be illegal:\r\n```ts\r\nabstract class A {\r\n  static abstract initialize(self: A): void;\r\n  static createInstance() {\r\n    const a = new this();\r\n    this.initialize(a);\r\n    return a;\r\n  }\r\n}\r\n```\r\n\r\nHowever, this means that TypeScript would miss straight-up crashes:\r\n```ts\r\n// Exception: 'this.initialize' is not a function\r\nA.createInstance();\r\n```\r\n\r\n * **Pros**: Ergonomic\r\n * **Cons**: Literally allows the runtime-crashing code `A.doSomething()`, which seems like a fairly large design deficit\r\n\r\n#### Option 2: None of them\r\n\r\nAllowing crashes is bad, so the rule should be that `static abstract` methods simply don't exist from a type system perspective except to the extent that they enforce concrete derived class constraints:\r\n\r\n```ts\r\nabstract class A {\r\n    static abstract doSomething(): void;\r\n}\r\nclass B extends A {\r\n    static doSomething() { }\r\n}\r\n\r\n// Error, can't call abstract method\r\nA.doSomething();\r\n\r\n// This call would work, but it'd still be an error\r\nconst Actor: typeof A = B;\r\nActor.doSomething();\r\n\r\nfunction indirect(a: { doSomething(): void }) {\r\n  a.doSomething();\r\n}\r\n\r\n// Error, can't use abstract method 'doSomething' to satisfy concrete property\r\nindirect(A);\r\n// OK\r\nindirect(B);\r\n```\r\n\r\nThis is unergonomic because it'd be impossible to write a function that dealt with an arbitrary complex constructor function without tedious rewriting:\r\n```ts\r\nabstract class Complicated {\r\n    static abstract setup(): void;\r\n    static abstract print(): void;\r\n    static abstract ship(): void;\r\n    static abstract shutdown(): void;\r\n}\r\n\r\nfunction fn(x: typeof Complicated) {\r\n  // Error, can't call abstract method\r\n  x.setup();\r\n  // Error, can't call abstract method\r\n  x.print();\r\n  // Error, can't call abstract method\r\n  x.ship();\r\n  // Error, can't call abstract method\r\n  x.shutdown();\r\n}\r\n```\r\n\r\nWe know this is a problem because people get tripped up by it constantly when they try to `new` an abstract class:\r\n\r\nhttps://www.reddit.com/r/typescript/comments/bcyt07/dynamically_creating_instance_of_subclass/\r\nhttps://stackoverflow.com/questions/57402745/create-instance-inside-abstract-class-of-child-using-this\r\nhttps://stackoverflow.com/questions/49809191/an-example-of-using-a-reference-to-an-abstract-type-in-typescript\r\nhttps://stackoverflow.com/questions/53540944/t-extends-abstract-class-constructor\r\nhttps://stackoverflow.com/questions/52358162/typescript-instance-of-an-abstract-class\r\nhttps://stackoverflow.com/questions/53692161/dependency-injection-of-abstract-class-in-typescript\r\nhttps://stackoverflow.com/questions/52358162/typescript-instance-of-an-abstract-class\r\n\r\nFor `abstract` constructor signatures, the recommended fix of using `{ new(args): T }` is pretty good because a) you need to be explicit about what arguments you're actually going to provide anyway and b) there's almost always exactly one signature you care about, but for `static abstract` methods/properties this is much more problematic because there could be *any* number of them.\r\n\r\nThis also would make it impossible for concrete `static` methods to invoke `abstract static` methods:\r\n```ts\r\nabstract class A {\r\n  static abstract initialize(self: A): void;\r\n  static createInstance() {\r\n    const a = new this();\r\n    // Error\r\n    this.initialize(a);\r\n    return a;\r\n  }\r\n}\r\n```\r\nOn the one hand, this is *good*, because `A.createInstance()` definitely *does* crash. On the other hand, this literally the exact kind of code you *want* to write with abstract methods.\r\n\r\nOne solution would be the existence of an `abstract static` method *with a body*, which would be allowed to invoke other `abstract static` methods but would be subject to invocation restrictions but *not* require a derived class implementation. This is also confusing because it would seem like this is just a \"default implementation\" that would still require overriding (that is the bare meaning of `abstract`, after all):\r\n```ts\r\nabstract class A {\r\n    abstract static initialize() {\r\n        console.log(\"Super class init done; now do yours\");\r\n    }\r\n}\r\n// No error for failing to provide `static initialize() {`, WAT?\r\nclass B extends A { }\r\n```\r\n\r\nAn alternative would be to say that you can't call *any* `static` method on an `abstract` class, even though that would ban trivially-OK code for seemingly no reason:\r\n```ts\r\nabstract class A {\r\n    static foo() { console.log(\"Everything is fine\"); }\r\n}\r\n// Can't invoke, WAT?\r\nA.foo();\r\n```\r\n\r\n * **Pros**: Correctly prevents all crashes\r\n * **Cons**: Extremely unergonomic at use cases; effectively bans concrete `static` methods from calling same-class `abstract` methods\r\n\r\n#### Option 3: Indirection is sufficient\r\n\r\nWhy not just split the baby and say that the *direct* form `A.doSomething()` is illegal, but `expr.doSomething()` where `expr` is of type `typeof A` is OK as long as `expr` isn't *exactly* `A`.\r\n\r\nThis creates the *dread inconsistency* that a trivial indirection is sufficient to defeat the type system and cause a crash:\r\n```ts\r\n// Error; crash prevented!\r\nA.doSomething();\r\nconst p = A;\r\n// OK, crashes, WAT?\r\np.doSomething();\r\n```\r\n\r\nIt's also not entirely clear what \"indirection\" means. Technically if you write\r\n```ts\r\nimport { SomeStaticAbstractClass as foo } from \"./otherModule\";\r\nfoo.someAbstractMethod();\r\n```\r\nthen `foo` isn't *exactly* the declaration of SomeStaticAbstractClass itself - it's an alias. But there isn't really anything distinguishing that from `const p = A` above.\r\n\r\n * **Pros**: Catches \"bad by inspection\" instances while still allowing \"maybe it works\" code\r\n * **Cons**: Extremely inconsistent; simply appears to function as if TypeScript has a bug in it. Unclear what sufficient indirection means in cases of e.g. module imports\r\n\r\n#### Option 4: Indirection, but with generics\r\n\r\nMaybe a trivial indirection as described in Option 3 isn't \"good enough\" and we should require you to use a constrained generic instead:\r\n```ts\r\n// Seems like you're maybe OK\r\nfunction fn\u003cT extends typeof A>(x: T) {\r\n    x.doSomething();\r\n}\r\n\r\n// Good, OK\r\nfn(B);\r\n// A fulfills typeof A, fair enough, crashes, WAT?\r\nfn(A);\r\n```\r\n\r\nThis turns out to be a bad option because many subclasses don't actually meet their base class static constraints due to constructor function arity differences:\r\n```ts\r\nabstract class A {\r\n    constructor() { }\r\n    foo() { }\r\n}\r\n\r\nclass B extends A {\r\n    constructor(n: number) {\r\n        super();\r\n    }\r\n    bar() { }\r\n}\r\n\r\nfunction fn\u003cT extends typeof A>(ctor: T) {\r\n    // Want to use static methods of 'ctor' here\r\n}\r\n// Error, B's constructor has too many args\r\nfn(B);\r\n```\r\nThis isn't even code we *want* people to write -- a generic type parameter used in exactly one position is something we explicitly discourage because it doesn't \"do anything\".\r\n\r\n * **Pros**: Maybe a slightly better variant of option 3\r\n * **Cons**: Just a more complicated system with the same failure modes\r\n\r\n#### Option 5: Something else?\r\n\r\nAnyone able to square this circle?\r\n\r\n## Checklist\r\n\r\nMy suggestion meets these guidelines:\r\n\r\n* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code\r\n* [x] This wouldn't change the runtime behavior of existing JavaScript code\r\n* [x] This could be implemented without emitting different JS based on the types of the expressions\r\n* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)\r\n* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2019-10-16T16:42:38Z","url":"https://github.com/microsoft/TypeScript/issues/34516"}

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:d6f0e0a7-86b1-e541-6a2d-cf52a19650b4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDFB8:3F4253:26C9866:33A9C08:6B01AB32
html-safe-nonce7515098b2d8e08c970a2712e919b45a99e2096286c2f64cf8825ae33f3359d18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkI4OjNGNDI1MzoyNkM5ODY2OjMzQTlDMDg6NkIwMUFCMzIiLCJ2aXNpdG9yX2lkIjoiMjkyMzIxMTE5MjIwODA0MjgwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac254fa4783345b378932c08e30d3ff8a6e14414e49b5bbdcac585541684884389
hovercard-subject-tagissue:507967613
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/34516/issue_layout
twitter:imagehttps://opengraph.githubassets.com/88e4eb675dfafcc633be5e6cdd36acccb69a7f1a48b5d6c4c939ffda7c06ac58/microsoft/TypeScript/issues/34516
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/88e4eb675dfafcc633be5e6cdd36acccb69a7f1a48b5d6c4c939ffda7c06ac58/microsoft/TypeScript/issues/34516
og:image:altThis is a continuation of #14600 which had two separate features proposed in the same issue (static members in interfaces and abstract static class members) Search Terms static abstract method prop...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRyanCavanaugh
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/34516#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F34516
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%2F34516
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/34516
Reloadhttps://github.com/microsoft/TypeScript/issues/34516
Reloadhttps://github.com/microsoft/TypeScript/issues/34516
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/34516
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/34516
static abstract methods and propertieshttps://github.com/microsoft/TypeScript/issues/34516#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/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 16, 2019https://github.com/microsoft/TypeScript/issues/34516#issue-507967613
#14600https://github.com/microsoft/TypeScript/issues/14600
https://www.reddit.com/r/typescript/comments/bcyt07/dynamically_creating_instance_of_subclass/https://www.reddit.com/r/typescript/comments/bcyt07/dynamically_creating_instance_of_subclass/
https://stackoverflow.com/questions/57402745/create-instance-inside-abstract-class-of-child-using-thishttps://stackoverflow.com/questions/57402745/create-instance-inside-abstract-class-of-child-using-this
https://stackoverflow.com/questions/49809191/an-example-of-using-a-reference-to-an-abstract-type-in-typescripthttps://stackoverflow.com/questions/49809191/an-example-of-using-a-reference-to-an-abstract-type-in-typescript
https://stackoverflow.com/questions/53540944/t-extends-abstract-class-constructorhttps://stackoverflow.com/questions/53540944/t-extends-abstract-class-constructor
https://stackoverflow.com/questions/52358162/typescript-instance-of-an-abstract-classhttps://stackoverflow.com/questions/52358162/typescript-instance-of-an-abstract-class
https://stackoverflow.com/questions/53692161/dependency-injection-of-abstract-class-in-typescripthttps://stackoverflow.com/questions/53692161/dependency-injection-of-abstract-class-in-typescript
https://stackoverflow.com/questions/52358162/typescript-instance-of-an-abstract-classhttps://stackoverflow.com/questions/52358162/typescript-instance-of-an-abstract-class
TypeScript's Design Goalshttps://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
Nexthttps://github.com/microsoft/TypeScript/issues/34516?timeline_page=1
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
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
on Oct 16, 2019https://github.com/microsoft/TypeScript/issues/34516#event-2718347047
https://github.com/AlCalzone
AlCalzonehttps://github.com/AlCalzone
on Oct 17, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-543065972
https://github.com/AlCalzone/node-zwave-js/blob/d2e29322d0392e02b7d8e2d7c8c430cb8fcaa113/src/lib/commandclass/CommandClass.ts#L363https://github.com/AlCalzone/node-zwave-js/blob/d2e29322d0392e02b7d8e2d7c8c430cb8fcaa113/src/lib/commandclass/CommandClass.ts#L363
https://github.com/AlCalzone/node-zwave-js/blob/d2e29322d0392e02b7d8e2d7c8c430cb8fcaa113/src/lib/commandclass/CommandClass.ts#L368https://github.com/AlCalzone/node-zwave-js/blob/d2e29322d0392e02b7d8e2d7c8c430cb8fcaa113/src/lib/commandclass/CommandClass.ts#L368
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Oct 17, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-543072992
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Oct 17, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-543078013
Titian Cernicova-Dragomir (@dragomirtitian)https://github.com/dragomirtitian
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Oct 18, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-543500405
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Oct 18, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-543550826
https://github.com/fatcerberus
Bruce Pascoe (fatcerberus)https://github.com/fatcerberus
on Oct 18, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-543795739
https://github.com/dragomirtitian
Titian Cernicova-Dragomir (dragomirtitian)https://github.com/dragomirtitian
on Oct 20, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-544302864
James Bromwell (@thw0rted)https://github.com/thw0rted
Playhttps://www.typescriptlang.org/play/?ssl=26&ssc=1&pln=1&pc=1#code/JYOwLgpgTgZghgYwgAgGIHt0GUxzMBAHgBVkIAPSEAEwGc1MA+ZAbwChlPkQIB3ACgCUALmTEA3By6hg+OABtgALwj90o4iOQA3dMGpsAvmzZwARrTBREYZAnlxa9DOlYmuyS3gJ2oEPBAAkiBeIEgkZJQQNM5M-GAAFsC0oi443kTEjIJuHh4I6CG2cMgAvNx8yInJQpJ5XFL11bQAdDJyiir8cIJ19ch+YACuUCDIcH2cxsZsLi0IfgHBoUhCyAD062RQUOhQDK7J4xZWNuM0yNToEPQg6LbAALYADvIQj9EPILLACsoQJnsjnoACE4PsKFQ6AdWMhjGCoPNFpBlrgwqocptoLt9gjLtdbvdkE9Xu9PsTvh1-iZzJZrAhbECnMgwUpIlDYq4WJ5cPgEBSfn8uuoWXAlDluYY4WxWUj-CiinB0WssTs9qK2UdaacGYCHMyAPIAa3Z0WhLlhXj5AqpwtExolcOlxrlS0VysxWxgoAU8gAnsh0Ca2EA
exhttps://www.typescriptlang.org/play/#code/C4TwDgpgBAYg9nAysAhsAlgYwDwBUoQAewEAdgCYDOsCAfFALxQDeAUFB1KRAO4AUASgBcUXAG52ndKXQYUAG3QAvCHzgjcwqADc46cqwC+UAGRRQkOADMacCaxQAjSsABOKTMCiZ5KStXg4FkkOFzQsKDhgAAsIV0EWKEMQqDCMTG9XCDQIAElSMNJMCDwCYjIqW1o+GPRKEUDkcJxcWgFgzk7vOAKvFEYuXnNousEJLs4UztrKADppWXQFZVUUAXGJ4brZqNj49anOLOAAV1dSKBQNjmTk1kDZzCyc-MLihIB6D4JXVzhXWxQOqXZxuDx9ChQchwCDUUhRIEAWzA8ggiLIXgWckUKlYrB8fmoACEUACiCQKAEEIlkiTXI9niRXqgiqp2l84n8AXSoTC4Qj0MjUejSJiZNiVninC53J5vL5-FASUoyhTKoFEmkIliljjVOolSglO1mEkkqxlQzskzeihWZ8Ppz-oaVcDpWDPHiCYqAPIAa1VFSpQVNWoyOuWKjUIn9JrNyX9Vpetvt7O+VmkCnkIEiAdYQA
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Oct 21, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-544377117
already losthttps://github.com/microsoft/TypeScript/issues/33892
#14600https://github.com/microsoft/TypeScript/issues/14600
https://github.com/dragomirtitian
Titian Cernicova-Dragomir (dragomirtitian)https://github.com/dragomirtitian
on Oct 21, 2019https://github.com/microsoft/TypeScript/issues/34516#issuecomment-544404500
James Bromwell (@thw0rted)https://github.com/thw0rted
Playhttps://www.typescriptlang.org/play/?ssl=27&ssc=34&pln=1&pc=1#code/JYOwLgpgTgZghgYwgAgGIHt0GUxzMBAHgBVkIAPSEAEwGc1MA+ZAbwChlPkQIB3ACgCUALmTEA3By6hg+OABtgALwj90o4iOQA3dMGpsAvmzZwARrTBREYZAnlxa9DOlZTOAByjBteFOXFkIxM2GABXEAR8dBA7KAg-AEkQSzhIiBIySggaZyZ+e1pRFxw8AhJGQTcuOxjLZDhkAF5uPjt5WiFJGvd22gA6GTlFFX44QW6ueLAwqFi4SWM2BHiklNx0-hcqgHodsigodCgGV2B6c0trKIaaZGp0CHoQdFtgAFsPeQh3nLeQWTABTKCAmeyOegAITgJwoVDop1YyGMKwSkGSqU20Kgux20COJ2x90ez1eyA+Xx+f3JAOGIJMlysNnaEOQ0KUWXheVcLGQqXwCBpgOBo3UbLgSiqvMMyOWq3R6zSSH47Nx+OO4o55waFiZUTBDicyAA8gBrTk5BEuJH8ghCumi0RmqXI2WotaY5XO5B7ZAwUAKeQAT2Q6HNbCAA
https://github.com/CreatedBySeb
Sébastien (CreatedBySeb)https://github.com/CreatedBySeb
on Jan 4, 2020https://github.com/microsoft/TypeScript/issues/34516#issuecomment-570777021
https://github.com/CreatedBySeb
Sébastien (CreatedBySeb)https://github.com/CreatedBySeb
on Jan 4, 2020https://github.com/microsoft/TypeScript/issues/34516#issuecomment-570785200
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
https://github.com/eddiemf
Mauricio Farias Dziedzinski (eddiemf)https://github.com/eddiemf
on Apr 24, 2020https://github.com/microsoft/TypeScript/issues/34516#issuecomment-619266870
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Apr 24, 2020https://github.com/microsoft/TypeScript/issues/34516#issuecomment-619272505
Mauricio Farias Dziedzinski (@eddiemf)https://github.com/eddiemf
https://github.com/Zamralik
Zamralikhttps://github.com/Zamralik
on Jun 22, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1162877587
https://github.com/Lamby777
Cherry (Lamby777)https://github.com/Lamby777
on Jun 26, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1166419025
https://github.com/trickypr
trickyprhttps://github.com/trickypr
on Jul 20, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1189836866
a proposal early in the threadhttps://github.com/microsoft/TypeScript/issues/34516#issuecomment-543078013
https://github.com/dead-claudia
Claudia Meadows (dead-claudia)https://github.com/dead-claudia
on Jul 22, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1193007333
abstract instance methodshttps://www.typescriptlang.org/play?ts=4.7.4#code/IYIwzgLgTsDGEAJYBthjAgggg3gKAUIVEhngQEsA7CiACgEoAuBANwHsKATAoyYCBVhIoAUwGiAklX5VYouhAAWFMCyqiA7gkYIAvAD4sDXLyJFY7GYmD6EG7ctWMA3GfPEAdNVqN35sQgAVygqYncAXzwovBQ0DAAhBFEADwhRKi4MbHxzH3pmNk4uXCiYzE9YMQlpWXlXPATK6vTaiGA5BQYXIA
https://github.com/tin-pham
Minez (tin-pham)https://github.com/tin-pham
on Oct 1, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1264188364
https://github.com/clounie
Bruce Clounie (clounie)https://github.com/clounie
on Oct 1, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1264242005
dart-lang/language#356 (comment)https://github.com/dart-lang/language/issues/356#issuecomment-1227522887
https://github.com/tempusdave
David Fugate (tempusdave)https://github.com/tempusdave
on Oct 6, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1270594453
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Oct 6, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1270600799
https://github.com/owl-from-hogvarts
owl from hogvarts (owl-from-hogvarts)https://github.com/owl-from-hogvarts
on Oct 7, 2022https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1272113665
https://github.com/TiesWestendorp
Ties Westendorp (TiesWestendorp)https://github.com/TiesWestendorp
on Jan 24, 2023https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1401628037
#34516 (comment)https://github.com/microsoft/TypeScript/issues/34516#issuecomment-642087219
https://stackoverflow.com/questions/13955157/how-to-define-static-property-in-typescript-interfacehttps://stackoverflow.com/questions/13955157/how-to-define-static-property-in-typescript-interface
https://github.com/QuintenPeulingCodesharpNl
QuintenPeulingCodesharpNlhttps://github.com/QuintenPeulingCodesharpNl
on Jun 23, 2023https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1604328325
https://github.com/Distortedlogic
Jeremy Meek (Distortedlogic)https://github.com/Distortedlogic
on Jul 14, 2023https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1636048224
https://github.com/Oaphi
Oleg Valter (Oaphi)https://github.com/Oaphi
on Jul 14, 2023https://github.com/microsoft/TypeScript/issues/34516#issuecomment-1636085109
Jeremy Meek (@Distortedlogic)https://github.com/Distortedlogic
QuintenPeulingCodesharpNlhttps://github.com/QuintenPeulingCodesharpNl
Brandon Bennett (Offroaders123)https://github.com/Offroaders123
on Feb 23, 2024https://github.com/microsoft/TypeScript/issues/34516#event-11901902300
Abstract Base Classeshttps://github.com/Offroaders123/jsmediatags/commit/49cb810e7cc6554586e10563ecfa782362870e1c
49cb810https://github.com/Offroaders123/jsmediatags/commit/49cb810e7cc6554586e10563ecfa782362870e1c
https://github.com/gamesaucer
gamesaucerhttps://github.com/gamesaucer
on Jun 25, 2024https://github.com/microsoft/TypeScript/issues/34516#issuecomment-2189758161
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/34516
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/34516
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.