Title: Design Meeting Notes, 2026-09-15 · Issue #64290 · microsoft/TypeScript · GitHub
Open Graph Title: Design Meeting Notes, 2026-09-15 · Issue #64290 · microsoft/TypeScript
X Title: Design Meeting Notes, 2026-09-15 · Issue #64290 · microsoft/TypeScript
Description: Better Type Inference Self-Referential Values #64192 #62180 #62181 #64172 #64248 const Category = z.object({ get subcategories() { // ~~~~~~~~~~~~~ // Subcategory implicitly has type 'any' because of circular // resolution. return z.arra...
Open Graph Description: Better Type Inference Self-Referential Values #64192 #62180 #62181 #64172 #64248 const Category = z.object({ get subcategories() { // ~~~~~~~~~~~~~ // Subcategory implicitly has type 'any' because ...
X Description: Better Type Inference Self-Referential Values #64192 #62180 #62181 #64172 #64248 const Category = z.object({ get subcategories() { // ~~~~~~~~~~~~~ // Subcategory implicitly has type 'any' ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/64290
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Design Meeting Notes, 2026-09-15","articleBody":"\n# Better Type Inference Self-Referential Values\n\n- https://github.com/microsoft/TypeScript/issues/64192\n- https://github.com/microsoft/TypeScript/issues/62180\n- https://github.com/microsoft/TypeScript/issues/62181\n- https://github.com/microsoft/TypeScript/pull/64172\n- https://github.com/microsoft/TypeScript/pull/64248\n\n```ts\nconst Category = z.object({\n get subcategories() {\n // ~~~~~~~~~~~~~\n // Subcategory implicitly has type 'any' because of circular\n // resolution.\n return z.array(Category);\n }\n});\n```\n\n* Zod and similar libraries are motivation here.\n* While processing the object literal, we normally defer return types for `get` accessors.\n* But when validating the constraint, we start pulling on those very types.\n* One idea: when we try to resolve a call that is already undergoing resolution, we say \"don't check constraints\".\n* Why don't we disable constraint checking for all calls and do it in another pass?\n * We're not always interested in just generating an error, we're often trying to grab the constraint for other information (e.g. if there's no candidates, we have to fix to the constraint).\n* How does this affect overloads? Because this would affect how we choose overloads, right?\n * Should not play in?\n* Could we just return the original *uninstantiated* type parameter from the call when you detect this circularity?\n * How would that work? Isn't that a type parameter leak?\n * Yes, but the idea is there's an \"outer\" call and an \"inner\" call. The inner call would leak a type parameter (e.g. `T`) and the outer call would instantiate it after inference.\n * Scary, but maybe!\n* Outstanding PRs are likely not quite what we're looking for, but may have a PR prototyping these ideas soon.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2026-09-15T22:00:10Z","url":"https://github.com/microsoft/TypeScript/issues/64290"}
| 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:a7f58ac1-a5c7-9768-a0c2-6c114d47f95c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E024:2C3566:CD735B:110FF2D:6B00F511 |
| html-safe-nonce | 0e6c7c5ea4224d03d87ff4b6f2b2813a5bba8b901da76fc3d7b027abec058ce9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDI0OjJDMzU2NjpDRDczNUI6MTEwRkYyRDo2QjAwRjUxMSIsInZpc2l0b3JfaWQiOiIxMjk0NzQ1ODQwNTI2NjE5OTIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f4a0cb47977ef30762e6dee7b84bf16b67662753089f4097e8254cb3d2cd2be3 |
| hovercard-subject-tag | issue:5467813757 |
| 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/64290/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc4498768d321a507e18c438d025b470dcdf30aff4566d91cbe730b9774b9738/microsoft/TypeScript/issues/64290 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc4498768d321a507e18c438d025b470dcdf30aff4566d91cbe730b9774b9738/microsoft/TypeScript/issues/64290 |
| og:image:alt | Better Type Inference Self-Referential Values #64192 #62180 #62181 #64172 #64248 const Category = z.object({ get subcategories() { // ~~~~~~~~~~~~~ // Subcategory implicitly has type 'any' because ... |
| 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 | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width