Title: Missing property declaration in abstract class implementing interfaces · Issue #4670 · microsoft/TypeScript · GitHub
Open Graph Title: Missing property declaration in abstract class implementing interfaces · Issue #4670 · microsoft/TypeScript
X Title: Missing property declaration in abstract class implementing interfaces · Issue #4670 · microsoft/TypeScript
Description: Abstract class should not be required to implement all the properties/methods of the interfaces it implements. So the following should be legal: interface A { p; m(); } abstract class B implements A { } class C extends B { get p() {...};...
Open Graph Description: Abstract class should not be required to implement all the properties/methods of the interfaces it implements. So the following should be legal: interface A { p; m(); } abstract class B implements ...
X Description: Abstract class should not be required to implement all the properties/methods of the interfaces it implements. So the following should be legal: interface A { p; m(); } abstract class B implements ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4670
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing property declaration in abstract class implementing interfaces","articleBody":"Abstract class should not be required to implement all the properties/methods of the interfaces it implements. So the following should be legal:\n\n``` typescript\ninterface A {\n p;\n m();\n}\n\nabstract class B implements A {\n}\n\nclass C extends B {\n get p() {...};\n set p(v) {...};\n m() {...}\n}\n```\n\nBut currently it gives:\n\n> Error:(2, 16) TS2420: Class 'B' incorrectly implements interface 'A'. Property 'p' is missing in type 'B'.\n\nThis issue is related to proposal #3578.\n","author":{"url":"https://github.com/denvned","@type":"Person","name":"denvned"},"datePublished":"2015-09-06T07:37:46Z","url":"https://github.com/microsoft/TypeScript/issues/4670"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3a9d5201-dfe5-e6e7-95fd-5bd08b58085b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE06:24645:A6E272:DBDB15:6B01BB55 |
| html-safe-nonce | 386313170cdb8122e5733d24321aff02a061906a1a79b0e079a0ee5ded4a9b24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTA2OjI0NjQ1OkE2RTI3MjpEQkRCMTU6NkIwMUJCNTUiLCJ2aXNpdG9yX2lkIjoiNzM3Nzc4ODk3MzM5NTA2NTY4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 20fd35d72fd167c592fca7b91f3aa90bc14e7afce0a034fff585830f3b836430 |
| hovercard-subject-tag | issue:105077247 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/4670/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0c3a10c94be944c43bd6d66476a6a8405c18e8620e211411bf6285331877274/microsoft/TypeScript/issues/4670 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0c3a10c94be944c43bd6d66476a6a8405c18e8620e211411bf6285331877274/microsoft/TypeScript/issues/4670 |
| og:image:alt | Abstract class should not be required to implement all the properties/methods of the interfaces it implements. So the following should be legal: interface A { p; m(); } abstract class B implements ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | denvned |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width