Title: Show unused public properties and methods · Issue #29293 · microsoft/TypeScript · GitHub
Open Graph Title: Show unused public properties and methods · Issue #29293 · microsoft/TypeScript
X Title: Show unused public properties and methods · Issue #29293 · microsoft/TypeScript
Description: It would be nice to have unused detection expanded, capable of detecting unused methods, exports, etc. Code Example Shape.js class Shape { constructor() { this.color = 'red'; } colorLog() { console.log(this.color); } } export default Sha...
Open Graph Description: It would be nice to have unused detection expanded, capable of detecting unused methods, exports, etc. Code Example Shape.js class Shape { constructor() { this.color = 'red'; } colorLog() { console...
X Description: It would be nice to have unused detection expanded, capable of detecting unused methods, exports, etc. Code Example Shape.js class Shape { constructor() { this.color = 'red'; } colorLog() {...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/29293
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Show unused public properties and methods","articleBody":"It would be nice to have unused detection expanded, capable of detecting unused methods, exports, etc.\r\n\r\n**Code Example**\r\n\r\n_Shape.js_\r\n```javascript\r\nclass Shape {\r\n constructor() {\r\n this.color = 'red';\r\n }\r\n\r\n colorLog() {\r\n console.log(this.color);\r\n }\r\n}\r\n\r\nexport default Shape;\r\n```\r\n_Circle.js_\r\n```javascript\r\nimport Shape from \"./Shape\";\r\n\r\nclass Circle extends Shape {\r\n constructor() {\r\n super();\r\n\r\n // FIXME: description should show as unused in VSCode, as it does in WebStorm.\r\n this.description = 'A circle shape';\r\n }\r\n\r\n // FIXME: circleLog should show as unused in VSCode, as it does in WebStorm.\r\n circleLog() {\r\n // NOTE: both VSCode and WebStorm have detected an unused variable.\r\n const num = 2;\r\n\r\n // NOTE: colorLog is being used, so no unused code errors in Shape.js file.\r\n super.colorLog();\r\n }\r\n}\r\n\r\n// FIXME: export should show as unused in VSCode, as it does in WebStorm.\r\nexport default Circle;\r\n```\r\n\r\n**VSCode Screen**\r\n\r\n\u003cimg width=\"1440\" alt=\"screen shot 2019-01-04 at 9 23 48 pm\" src=\"https://user-images.githubusercontent.com/12591890/50719791-161a2980-1067-11e9-8b16-3f4e4fe6b531.png\">\r\n\r\n**WebStorm Screen**\r\n\r\n\u003cimg width=\"1440\" alt=\"screen shot 2019-01-04 at 9 23 07 pm\" src=\"https://user-images.githubusercontent.com/12591890/50719793-1ca8a100-1067-11e9-8c17-071746dd085f.png\">\r\n\r\n","author":{"url":"https://github.com/jabacchetta","@type":"Person","name":"jabacchetta"},"datePublished":"2019-01-05T03:24:30Z","url":"https://github.com/microsoft/TypeScript/issues/29293"}
| 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:627ee54b-cbbf-7ded-3950-1e72126f0216 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91B0:4E3C:CC2AF5:10FB90F:6B00F7D7 |
| html-safe-nonce | a9e6e3ffb447f15180a43778d7e6d0b8c1a80c35c89394699d4bb27689d3464c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUIwOjRFM0M6Q0MyQUY1OjEwRkI5MEY6NkIwMEY3RDciLCJ2aXNpdG9yX2lkIjoiMTc5MDg4NDgxNDk3MTg0MjE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5435f62ada6036a5bce090165c5126d9e53b18368ff161a795276aa3348738f4 |
| hovercard-subject-tag | issue:396627231 |
| 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/29293/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60bd576664102de6970d630157b72f65a7339bb043d819593bdd8e1265a9138a/microsoft/TypeScript/issues/29293 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60bd576664102de6970d630157b72f65a7339bb043d819593bdd8e1265a9138a/microsoft/TypeScript/issues/29293 |
| og:image:alt | It would be nice to have unused detection expanded, capable of detecting unused methods, exports, etc. Code Example Shape.js class Shape { constructor() { this.color = 'red'; } colorLog() { console... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jabacchetta |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width