Title: Design Meeting Notes, 1/21/2022 · Issue #47726 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 1/21/2022 · Issue #47726 · microsoft/TypeScript
X Title: Design Meeting Notes, 1/21/2022 · Issue #47726 · microsoft/TypeScript
Description: Destructuring and Narrowing #47337 If you narrow with "a" in value when value is generic, and then grab a with value.a, it works, but doesn't with destructuring. Inconsistent! Sometimes it makes sense to get the base constraint in destru...
Open Graph Description: Destructuring and Narrowing #47337 If you narrow with "a" in value when value is generic, and then grab a with value.a, it works, but doesn't with destructuring. Inconsistent! Sometimes it makes se...
X Description: Destructuring and Narrowing #47337 If you narrow with "a" in value when value is generic, and then grab a with value.a, it works, but doesn't with destructuring. Inconsistent! Sometim...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/47726
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 1/21/2022","articleBody":"# Destructuring and Narrowing\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/47337\r\n\r\n* If you narrow with `\"a\" in value` when `value` is generic, and then grab `a` with `value.a`, it works, but doesn't with destructuring.\r\n * Inconsistent!\r\n* Sometimes it makes sense to get the base constraint in destructured valies instead of the generic, and sometimes it's best to keep the original type.\r\n * But threading the code to do that is difficult.\r\n* Lots of bug reports where people say \"oh no, I wanted the deferred version\" or \"I want the base constrained person\"\r\n* Seems like there are a well-understood set of cases that can be iterated on in the PR.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2022-02-03T21:28:12Z","url":"https://github.com/microsoft/TypeScript/issues/47726"}
| 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:40f7f81f-8fce-310e-e7e7-5963678befb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB34:172B92:1B475FE:2456963:6B015D1E |
| html-safe-nonce | bb757d40b8677c7dc13ed75c4163dd57e3563019729c310911582cfeadc90964 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjM0OjE3MkI5MjoxQjQ3NUZFOjI0NTY5NjM6NkIwMTVEMUUiLCJ2aXNpdG9yX2lkIjoiNDI4NzQ3MzE4OTc0OTA4NzUxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b4b5ee31a6484b371e5d49f33c1cfd3eee756277fc8257147ae70ae2bb5263d1 |
| hovercard-subject-tag | issue:1123573237 |
| 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/47726/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75bb684a51158c8bb618232e492307d5ab46e3825292bd47e88e8fe54ad62332/microsoft/TypeScript/issues/47726 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75bb684a51158c8bb618232e492307d5ab46e3825292bd47e88e8fe54ad62332/microsoft/TypeScript/issues/47726 |
| og:image:alt | Destructuring and Narrowing #47337 If you narrow with "a" in value when value is generic, and then grab a with value.a, it works, but doesn't with destructuring. Inconsistent! Sometimes it makes se... |
| 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 | 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width