Title: TSX spread stopped working · Issue #14112 · microsoft/TypeScript · GitHub
Open Graph Title: TSX spread stopped working · Issue #14112 · microsoft/TypeScript
X Title: TSX spread stopped working · Issue #14112 · microsoft/TypeScript
Description: import * as React from "react"; interface Props { } export class Test extends React.Component
Open Graph Description: import * as React from "react"; interface Props { } export class Test extends React.Component
X Description: import * as React from "react"; interface Props { } export class Test extends React.Component<Props, {}> { render() { return <div {...this.props} /> } } Was working fine until...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/14112
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TSX spread stopped working","articleBody":"```ts\r\nimport * as React from \"react\";\r\n\r\ninterface Props {\r\n\r\n}\r\n\r\nexport class Test extends React.Component\u003cProps, {}> {\r\n render() {\r\n return \u003cdiv {...this.props} />\r\n }\r\n}\r\n```\r\n\r\nWas working fine until: `typescript@2.3.0-dev.20170215`\r\n\r\nIn `typescript@2.3.0-dev.20170216` throws:\r\n\r\n`error TS2698: Spread types may only be created from object types.`\r\n\r\nNot sure if related: https://github.com/Microsoft/TypeScript/issues/13557\r\n","author":{"url":"https://github.com/normalser","@type":"Person","name":"normalser"},"datePublished":"2017-02-16T15:14:25Z","url":"https://github.com/microsoft/TypeScript/issues/14112"}
| 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:8cd3890a-902b-15c9-820b-e38296e9e7f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA0A:F7C4C:2CB8875:3BEF7CC:6B01D923 |
| html-safe-nonce | dfce759d2357fa1ad5525698b6a8c078b4c14341dca0248006899438f0aab99a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTBBOkY3QzRDOjJDQjg4NzU6M0JFRjdDQzo2QjAxRDkyMyIsInZpc2l0b3JfaWQiOiI2MDU2OTkwMTcyMjgzNzg3NTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aa86c71f0665e226bab756e3a11ea0b240eb6578376501cc13c94ca905f9d246 |
| hovercard-subject-tag | issue:208149620 |
| 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/14112/issue_layout |
| twitter:image | https://opengraph.githubassets.com/76f26e694240b4727e4d8f66108fd82b17c1689d3ea75de84010afe160803fcb/microsoft/TypeScript/issues/14112 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/76f26e694240b4727e4d8f66108fd82b17c1689d3ea75de84010afe160803fcb/microsoft/TypeScript/issues/14112 |
| og:image:alt | import * as React from "react"; interface Props { } export class Test extends React.Component |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | normalser |
| 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