Title: @deprecated strikethrough doesn't appear in many cases, such as JSX elements, const arrow functions, or properties. · Issue #39374 · microsoft/TypeScript · GitHub
Open Graph Title: @deprecated strikethrough doesn't appear in many cases, such as JSX elements, const arrow functions, or properties. · Issue #39374 · microsoft/TypeScript
X Title: @deprecated strikethrough doesn't appear in many cases, such as JSX elements, const arrow functions, or properties. · Issue #39374 · microsoft/TypeScript
Description: TypeScript Version: 4.0.0-dev.20200701 VS Code Version: 1.47.0-insider commit: b16b467 Search Terms: deprecated Code /** @deprecated */ type Props = { /** @deprecated */ old: string, new: string, } /** @deprecated */ const Component = (p...
Open Graph Description: TypeScript Version: 4.0.0-dev.20200701 VS Code Version: 1.47.0-insider commit: b16b467 Search Terms: deprecated Code /** @deprecated */ type Props = { /** @deprecated */ old: string, new: string, }...
X Description: TypeScript Version: 4.0.0-dev.20200701 VS Code Version: 1.47.0-insider commit: b16b467 Search Terms: deprecated Code /** @deprecated */ type Props = { /** @deprecated */ old: string, new: string, }...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/39374
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@deprecated strikethrough doesn't appear in many cases, such as JSX elements, const arrow functions, or properties.","articleBody":"**TypeScript Version:** 4.0.0-dev.20200701\r\n**VS Code Version:** 1.47.0-insider commit: b16b467d3e\r\n\r\n**Search Terms:**\r\ndeprecated\r\n\r\n**Code**\r\n\r\n```ts\r\n/** @deprecated */\r\ntype Props = {\r\n /** @deprecated */\r\n old: string,\r\n new: string,\r\n}\r\n\r\n/** @deprecated */\r\nconst Component = (props: Props) => \u003cdiv />;\r\n\r\n\u003cComponent old=\"old\" new=\"new\" />\r\n\r\n/** @deprecated */\r\ntype Options = {\r\n /** @deprecated */\r\n old: string;\r\n new: string;\r\n}\r\n\r\n/** @deprecated */\r\nconst deprecatedFunction = (options: Options) => {}\r\n\r\ndeprecatedFunction({\r\n old: \"\",\r\n new: \"hi\",\r\n});\r\n```\r\n\r\n**Expected behavior:**\r\nAll deprecated usages have strikethrough styles: `\u003cComponent>`, the `old` prop on `Component`, `deprecatedFunction`, `old`\r\n\r\n**Actual behavior:**\r\nOnly `props` and `options` have strikethrough styles.\r\n\r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior -->\r\nStrikethrough isn't visible here, but `...` is (just like stable VS Code vs. Insiders).\r\nhttps://www.typescriptlang.org/play/?jsx=2&ts=4.0.0-beta&ssl=29&ssc=1&pln=1&pc=1#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgIilQ3wG4AocgegCoa4ABAEyTCLRRiSbhqvJgBPMEjgAFHGADOcALxwA3uThxa9Zq3aduvfiogAbJgC44UmFGAA7AOYAaZXCtIA7qfOXbDgL6U1jFjYkDi4ePnI0CCtzOABhXEhnK3h5AAo2CGlTCUypAEo5AD44AB4mYAA3VUKKchL48CikZLhDJll8NvwnVw7nF26qQr86AM1g7TD+IRE4AHkwGGAomXklFX8NIJCdcP0jdwtrGwoVfsPPE-JfalGtrVDdCJX4QIfuADEAVysMZas5HBUpklitTAtQdECrJigobm8JqFvr9Ial1q0DgR8A4zq5TPgABbAbHXPIUIA\r\n\r\n**Related Issues:**\r\nNone (feature is new to 4.0)","author":{"url":"https://github.com/threehams","@type":"Person","name":"threehams"},"datePublished":"2020-07-02T04:10:19Z","url":"https://github.com/microsoft/TypeScript/issues/39374"}
| 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:45e36d95-0c84-e89c-f8df-f08356637c23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFB6:1DCB8C:C06771:FFF86C:6B00F22C |
| html-safe-nonce | 62977b9579627ed683d513b4c501b1af60d44565ac7c8500e4ffc8c662ea91c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkI2OjFEQ0I4QzpDMDY3NzE6RkZGODZDOjZCMDBGMjJDIiwidmlzaXRvcl9pZCI6IjUzNzAwMjk2OTUzODk3MjUyMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5449093df6a103eac2b89850197946ac8f4a36a9f2dca27ba36fc02e12c5ad10 |
| hovercard-subject-tag | issue:649619940 |
| 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/39374/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a3eba2cf548c12d22a012d60a0489ce7c373e0b69681d8b5db18e1ab7d4d3f8/microsoft/TypeScript/issues/39374 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a3eba2cf548c12d22a012d60a0489ce7c373e0b69681d8b5db18e1ab7d4d3f8/microsoft/TypeScript/issues/39374 |
| og:image:alt | TypeScript Version: 4.0.0-dev.20200701 VS Code Version: 1.47.0-insider commit: b16b467 Search Terms: deprecated Code /** @deprecated */ type Props = { /** @deprecated */ old: string, new: string, }... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | threehams |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width