Title: Variable names from rest-destructured declarations marked as unused in modules · Issue #13076 · microsoft/TypeScript · GitHub
Open Graph Title: Variable names from rest-destructured declarations marked as unused in modules · Issue #13076 · microsoft/TypeScript
X Title: Variable names from rest-destructured declarations marked as unused in modules · Issue #13076 · microsoft/TypeScript
Description: From #13048 (comment) and as a continuation of #12766, the following causes unused local errors where marked when using --noUnusedLocals. declare let props: any; const { children, // here! active: _a, // here! ...rest, } = props; functio...
Open Graph Description: From #13048 (comment) and as a continuation of #12766, the following causes unused local errors where marked when using --noUnusedLocals. declare let props: any; const { children, // here! active: ...
X Description: From #13048 (comment) and as a continuation of #12766, the following causes unused local errors where marked when using --noUnusedLocals. declare let props: any; const { children, // here! active: ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/13076
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Variable names from rest-destructured declarations marked as unused in modules","articleBody":"From https://github.com/Microsoft/TypeScript/issues/13048#issuecomment-268400368 and as a continuation of #12766, the following causes unused local errors where marked when using `--noUnusedLocals`.\r\n\r\n```ts\r\ndeclare let props: any;\r\nconst {\r\n children, // here!\r\n active: _a, // here!\r\n ...rest,\r\n} = props;\r\n\r\nfunction foo() {\r\n const {\r\n children,\r\n active: _a,\r\n ...rest,\r\n } = props;\r\n}\r\n\r\nexport const asdf = 123;\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2016-12-21T01:12:06Z","url":"https://github.com/microsoft/TypeScript/issues/13076"}
| 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:b3d88cd1-1e06-60c1-1eb6-2d5d995011a8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C39E:62283:3F8E56:562287:6B00C8BC |
| html-safe-nonce | 61138d450cc368808ede2b51a519156625a43d39ea0d725b0e081bd71b031896 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzlFOjYyMjgzOjNGOEU1Njo1NjIyODc6NkIwMEM4QkMiLCJ2aXNpdG9yX2lkIjoiODMyMDIxNjI0ODI0Mzc2NzQ4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5509095aff282193b60cb89b489ee07d560312a078c911e3b554e4a843857b3c |
| hovercard-subject-tag | issue:196821705 |
| 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/13076/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2010eca489e8e8bbdd55cc56d7937f8352da48d44069d48d5449a971b18c4c09/microsoft/TypeScript/issues/13076 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2010eca489e8e8bbdd55cc56d7937f8352da48d44069d48d5449a971b18c4c09/microsoft/TypeScript/issues/13076 |
| og:image:alt | From #13048 (comment) and as a continuation of #12766, the following causes unused local errors where marked when using --noUnusedLocals. declare let props: any; const { children, // here! active: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 98dc00e171c204462a6f367482a0f8c3c6b5dbca99cd7390e82d2df49ce096e4 |
| 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 | ef013399cf0a3c324bea644a685d7c1e0f06b5b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width