Title: Design Meeting Notes, 1/24/2024 · Issue #57241 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 1/24/2024 · Issue #57241 · microsoft/TypeScript
X Title: Design Meeting Notes, 1/24/2024 · Issue #57241 · microsoft/TypeScript
Description: 5.4 Breaking Changes #57117 #56004 Used to be that constraint of a conditional type on a type parameter would just run the constraint of the type variable through the conditional type. But the concrete type could hold a more specific typ...
Open Graph Description: 5.4 Breaking Changes #57117 #56004 Used to be that constraint of a conditional type on a type parameter would just run the constraint of the type variable through the conditional type. But the conc...
X Description: 5.4 Breaking Changes #57117 #56004 Used to be that constraint of a conditional type on a type parameter would just run the constraint of the type variable through the conditional type. But the conc...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/57241
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 1/24/2024","articleBody":"# 5.4 Breaking Changes\r\n\r\nhttps://github.com/microsoft/TypeScript/issues/57117\r\n\r\n* #56004\r\n * Used to be that constraint of a conditional type on a type parameter would just run the constraint of the type variable through the conditional type.\r\n * But the concrete type could hold a more specific type, so that's incorrect.\r\n * Existing code assumes we will always evaluate using the based constraint.\r\n * In the error detector, this hits Drizzle, Qwik, react-hook-form, refined-github.\r\n * Particularly hard to figure out what is going on.\r\n * Are they all hard to fix?\r\n * Yes, sorta.\r\n * Qwik could rewrite a type to an intersection (we think).\r\n * react-hook-form could've made a type guard that's more specific to the codebase.\r\n* #54477\r\n * What was the issue this was trying to fix?\r\n * No issue filed - but makes the behavior of `couldContainTypeVariables` observable (which is purely for performance).\r\n * Let's revert if possible.\r\n* #56515\r\n * Breaks a signature like `\u003cU, extends Equals\u003cT, U>>` in react-redux type helpers.\r\n * They can move the `Equals` out of the constraint, and rewrite it as an intersection.\r\n * `\u003cU extends T>(u: U & Equals\u003cT, U>) => {}`\r\n * https://github.com/reduxjs/react-redux/pull/2123\r\n\r\n* Feelings?\r\n * #56004 is the hardest one to fix, but it is definitely more correct.\r\n * Will have to document it, we would like to keep that.\r\n\r\n# Supporting Named ESM Imports from the TypeScript API\r\n\r\nhttps://github.com/microsoft/TypeScript/pull/57133\r\n\r\n* Proof-of-concept that adds an object that is friendly to cjs-module-lexer.\r\n* If part of the build requires importing the compiler to build up that object, is that a security issue for PRs?\r\n * Already running build scripts etc.\r\n* If you use `export = `, we emit stuff that is not friendly to cjs-module-lexer?\r\n * The lexer cannot deal with non-shorthand property declarations.\r\n * What???\r\n* Feels like people are not happy with it since we don't fully understand the implications, but not strongly against it.\r\n","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2024-01-30T21:24:08Z","url":"https://github.com/microsoft/TypeScript/issues/57241"}
| 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:d9f2a73e-cf1b-22fa-36ac-736db9317c23 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5D6:2F12FE:788B0C:9F8D66:6B04E86B |
| html-safe-nonce | 829137bee9ab1c36c0f26465aafb8a72719e7409f6c342b05b7b6cba2b00ad78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUQ2OjJGMTJGRTo3ODhCMEM6OUY4RDY2OjZCMDRFODZCIiwidmlzaXRvcl9pZCI6IjEyNjE0NDg4OTYxMTEyNDEzMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d97a5ce9591cce7103f4c619a885bf1471c9604a7f08ba537cbe85704248cfa3 |
| hovercard-subject-tag | issue:2108809117 |
| 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/57241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4764ca941781a39fadc28d6606e62b1abadca7f8d55e58db125eae4d24a51691/microsoft/TypeScript/issues/57241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4764ca941781a39fadc28d6606e62b1abadca7f8d55e58db125eae4d24a51691/microsoft/TypeScript/issues/57241 |
| og:image:alt | 5.4 Breaking Changes #57117 #56004 Used to be that constraint of a conditional type on a type parameter would just run the constraint of the type variable through the conditional type. But the conc... |
| 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 | f3851aad500d8e8dce736722ddc6fa9596e17d9fce3c53581eba968664c0bc32 |
| 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 | e29c922455fd8137f27e1cfcdf6a1e8b920b1926 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width