Title: @deprecated appears for any element access that might access a deprecated member · Issue #39246 · microsoft/TypeScript · GitHub
Open Graph Title: @deprecated appears for any element access that might access a deprecated member · Issue #39246 · microsoft/TypeScript
X Title: @deprecated appears for any element access that might access a deprecated member · Issue #39246 · microsoft/TypeScript
Description: TypeScript Version: 3.7.x-dev.201xxxxx Search Terms: deprecated element access Code interface Foo { /** @deprecated - use `fullName` */ full_name: string; fullName: string; email: string; } function getFromFoo(foo: Foo, key: keyof Foo) {...
Open Graph Description: TypeScript Version: 3.7.x-dev.201xxxxx Search Terms: deprecated element access Code interface Foo { /** @deprecated - use `fullName` */ full_name: string; fullName: string; email: string; } functio...
X Description: TypeScript Version: 3.7.x-dev.201xxxxx Search Terms: deprecated element access Code interface Foo { /** @deprecated - use `fullName` */ full_name: string; fullName: string; email: string; } functio...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/39246
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@deprecated appears for any element access that might access a deprecated member","articleBody":"\u003c!-- 🚨 STOP 🚨 STOP 🚨 STOP 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 3.7.x-dev.201xxxxx\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** deprecated element access\r\n\r\n**Code**\r\n\r\n```ts\r\ninterface Foo {\r\n\t/** @deprecated - use `fullName` */\r\n\tfull_name: string;\r\n\tfullName: string;\r\n\temail: string;\r\n}\r\n\r\nfunction getFromFoo(foo: Foo, key: keyof Foo) {\r\n\treturn foo[key];\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nDon’t bother me\r\n\r\n**Actual behavior:**\r\n\r\n\u003cimg width=\"540\" alt=\"key is crossed out in 'foo[key]'\" src=\"https://user-images.githubusercontent.com/3277153/85635742-80e06b80-b633-11ea-803f-c922202515b7.png\">\r\n\r\n\r\n[**Playground Link**](https://www.typescriptlang.org/play/?ts=4.0.0-dev.20200623&ssl=1&ssc=1&pln=10&pc=2#code/JYOwLgpgTgZghgYwgAgGIHt3IN4CgCQA9AFTHIACAJhAA5QQJySXIC0yArgM4oAGMHADaCAcnAC2EXsmKECA4QH0QEiAC5kXMFFABzANzyho1Rq06QBghHFxggs9r2GAvrlwCQCMMHQhkuhBgqFDo4hjoABQwmBoRADTIANYQAJ4aKanoMGiYAJQ4BPRgHFD+MegA2pkAuq5AA)\r\n\r\n**Related Issues:** #33092, #38523 \r\n","author":{"url":"https://github.com/andrewbranch","@type":"Person","name":"andrewbranch"},"datePublished":"2020-06-24T23:00:20Z","url":"https://github.com/microsoft/TypeScript/issues/39246"}
| 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:f081afc1-035e-b370-290b-a9778ea217f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BAA4:16AB79:72BC78:937FC5:6B00E3F6 |
| html-safe-nonce | c66757651f88e9d8bc41cf47d789c2a3e3ce38b819f4764c7bb70edf4b5cd1ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUE0OjE2QUI3OTo3MkJDNzg6OTM3RkM1OjZCMDBFM0Y2IiwidmlzaXRvcl9pZCI6Ijk3NzU5MTI0NzYzODE2MDM3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 48c09fff511fddf5b89f08397e01320f6165bbada1f7fbd7922e7875ffaac74f |
| hovercard-subject-tag | issue:645030201 |
| 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/39246/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de8b4e791313ea98a8397b4149c065b4aa7c1e583d38000540f59bd6862bb511/microsoft/TypeScript/issues/39246 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de8b4e791313ea98a8397b4149c065b4aa7c1e583d38000540f59bd6862bb511/microsoft/TypeScript/issues/39246 |
| og:image:alt | TypeScript Version: 3.7.x-dev.201xxxxx Search Terms: deprecated element access Code interface Foo { /** @deprecated - use `fullName` */ full_name: string; fullName: string; email: string; } functio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andrewbranch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width