Title: Cannot extend mapped types · Issue #12986 · microsoft/TypeScript · GitHub
Open Graph Title: Cannot extend mapped types · Issue #12986 · microsoft/TypeScript
X Title: Cannot extend mapped types · Issue #12986 · microsoft/TypeScript
Description: TypeScript Version: 2.1.4 Code interface A { x: number; } interface B extends Partial { y: number; } Expected behavior: Compiles Actual behavior: An interface may only extend a class or another interface.
Open Graph Description: TypeScript Version: 2.1.4 Code interface A { x: number; } interface B extends Partial { y: number; } Expected behavior: Compiles Actual behavior: An interface may only extend a class or another ...
X Description: TypeScript Version: 2.1.4 Code interface A { x: number; } interface B extends Partial<A> { y: number; } Expected behavior: Compiles Actual behavior: An interface may only extend a class or an...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/12986
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot extend mapped types","articleBody":"**TypeScript Version:** 2.1.4\r\n\r\n**Code**\r\n\r\n```ts\r\ninterface A {\r\n x: number;\r\n}\r\n\r\ninterface B extends Partial\u003cA> {\r\n y: number;\r\n}\r\n```\r\n\r\n**Expected behavior:** Compiles\r\n\r\n**Actual behavior:** `An interface may only extend a class or another interface.`\r\n","author":{"url":"https://github.com/fongandrew","@type":"Person","name":"fongandrew"},"datePublished":"2016-12-16T20:00:46Z","url":"https://github.com/microsoft/TypeScript/issues/12986"}
| 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:039456c7-ed1c-5d71-459b-dc504a50106c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C02:28815B:6B4E0C:910E75:6B00D878 |
| html-safe-nonce | 1151c548ba50d659dfdb5f008d7b4fad0455874c79fb709848eb5e4264d7d498 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzAyOjI4ODE1Qjo2QjRFMEM6OTEwRTc1OjZCMDBEODc4IiwidmlzaXRvcl9pZCI6IjE0NDQzMzEwNDMxMTYwNzkyMjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a97931fb3f41b85ad85318c77c64fd10ef5ef087395f80fa9f9c179852281520 |
| hovercard-subject-tag | issue:196142454 |
| 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/12986/issue_layout |
| twitter:image | https://opengraph.githubassets.com/52d263ac128401df78553626a54779058bcd6d1b23ecd7f8c523fa5f00c1ee62/microsoft/TypeScript/issues/12986 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/52d263ac128401df78553626a54779058bcd6d1b23ecd7f8c523fa5f00c1ee62/microsoft/TypeScript/issues/12986 |
| og:image:alt | TypeScript Version: 2.1.4 Code interface A { x: number; } interface B extends Partial { y: number; } Expected behavior: Compiles Actual behavior: An interface may only extend a class or another ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fongandrew |
| hostname | github.com |
| expected-hostname | github.com |
| None | a481f62a1e04c9b9bdcb5628230682c66d59006f5b13b080f79cba84a176905b |
| 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 | 84c8c5cc25e2fb7f2308428458538436baecc6d2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width