René's URL Explorer Experiment


Title: Reverse mapped type with a circular type param sometimes not treated as partially inferrable · Issue #48798 · microsoft/TypeScript · GitHub

Open Graph Title: Reverse mapped type with a circular type param sometimes not treated as partially inferrable · Issue #48798 · microsoft/TypeScript

X Title: Reverse mapped type with a circular type param sometimes not treated as partially inferrable · Issue #48798 · microsoft/TypeScript

Description: Bug Report 🔎 Search Terms reverse mapped types, circular type, partially inferrable ⏯ Playground Link Playground link with relevant code 💻 Code type AnyFunction = (...args: any[]) => any; type InferNarrowest = T extends any ? T extend...

Open Graph Description: Bug Report 🔎 Search Terms reverse mapped types, circular type, partially inferrable ⏯ Playground Link Playground link with relevant code 💻 Code type AnyFunction = (...args: any[]) => any; type Infe...

X Description: Bug Report 🔎 Search Terms reverse mapped types, circular type, partially inferrable ⏯ Playground Link Playground link with relevant code 💻 Code type AnyFunction = (...args: any[]) => any; type I...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/48798

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reverse mapped type with a circular type param sometimes not treated as partially inferrable","articleBody":"# Bug Report\r\n\r\n### 🔎 Search Terms\r\n\r\nreverse mapped types, circular type, partially inferrable\r\n\r\n### ⏯ Playground Link\r\n\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMDr7BJk2xk3ZQABk+PRmCwd0YMzmCy0yJMewOVS+P20j1G7XGzjCllZWP0Di0WygRVK5WEaFw6igaB6YIAsuQ0AALSbQQjaE7Sc4GUKuKAms4XLTW86Qoi+AD6ytN1GW0lqqUamWyrTtpwdgg4jBK2EwZh4nTJgnVvRM2r1BqI0IZTIGjCBkHMk2oQPuvlhahJCRzZjzpYJtlwVertn6xSIXDT9dsPWAyEoeCBcGwABE3uQgUI21BdoX6xPyZPx4XdhwhEA)\r\n\r\n### 💻 Code\r\n\r\n```ts\r\ntype AnyFunction = (...args: any[]) => any;\r\n\r\ntype InferNarrowest\u003cT> = T extends any\r\n  ? T extends AnyFunction\r\n    ? T\r\n    : T extends object\r\n    ? InferNarrowestObject\u003cT>\r\n    : T\r\n  : never;\r\n\r\ntype InferNarrowestObject\u003cT> = {\r\n  readonly [K in keyof T]: InferNarrowest\u003cT[K]>;\r\n};\r\n\r\ntype Config\u003cTGlobal, TState = Prop\u003cTGlobal, \"states\">> = {\r\n  states: {\r\n    [StateKey in keyof TState]: {\r\n      on?: {};\r\n    };\r\n  };\r\n} & {\r\n  initial: keyof TState;\r\n};\r\n\r\ntype Prop\u003cT, K> = K extends keyof T ? T[K] : never;\r\n\r\nconst createMachine = \u003cTConfig extends Config\u003cTConfig>>(\r\n  _config: InferNarrowestObject\u003cTConfig>\r\n): void => {};\r\n\r\ncreateMachine({\r\n  initial: \"pending\",\r\n  states: {\r\n    pending: {\r\n      on: {\r\n        done() {\r\n          return \"noData\";\r\n        },\r\n      },\r\n    },\r\n  },\r\n});\r\n\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nInferred signature is:\r\n```ts\r\nconst createMachine: \u003cConfig\u003c{\r\n    initial: \"pending\";\r\n    states: unknown;\r\n}, unknown>>(_config: InferNarrowestObject\u003cConfig\u003c{\r\n    initial: \"pending\";\r\n    states: unknown;\r\n}, unknown>>) => void\r\n```\r\n\r\n### 🙂 Expected behavior\r\n\r\n`states: unknown` shouldn't be inferred here, the reverse mapped type should be able to infer an object literal type~. The type param should be inferred as something like:\r\n```ts\r\nconst createMachine: \u003c{\r\n    initial: \"pending\";\r\n    states: {\r\n        pending: {\r\n            on: {\r\n                done: () => \"noData\";\r\n            };\r\n        };\r\n    };\r\n}>(_config: InferNarrowestObject\u003c{\r\n    initial: \"pending\";\r\n    states: {\r\n        pending: {\r\n            on: {\r\n                done: () => \"noData\";\r\n            };\r\n        };\r\n    };\r\n}>) => void\r\n```\r\n\r\nWe can simplify the repro a little bit, but it will then yield an error at a different position and I can't verify right now if the underlying issue is exactly the same in this case (although from what it looks like the root cause is super similar):\r\n[TS playground without conditional type applied at the argument position](https://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAwg9gOwGYEsDmAeAKgcQDZwBGAhngDRRYDKwxw0AvFAAoBOcY2+RpFARAGda9AXwB8YqEwDeAKChQhdCAIBcUOQoUBtGsoDSEEFBQIoAayNwklPfQC66zVoWIA-E4C+AbnlaffgGeUABkGn6mKMAopOqWINa2whC+AbKgkCzsnFgU+pJM+lAQAB70CAAmAhZWNlhQbpTa+vZQ6ggQAG4QrL6yAMaIQlD9rBDKALLE-QAWpoxQ2PDI6MVlEJXVy6iYWNvoEgAUfgD6gyto6nuIO7IAlOqdcCgVUpLSaaPj9FOz84fOSLRWJQPiQSqmNB8Mh+JQiJx+BTgiqQhEuVwINHohQVRAQQ53cLYlxjYAAV1YZj4CDgABE6MQ+L5iVBPDDsWzEaz2dzZJ47r4gA)\r\n\r\nNote that we can fix both playground by using an arrow function instead of a method (probably related to a possible \"hidden\" `this` type param that makes this context sensitive in the case of a method). \r\n\r\nThe first one can be fixed by adding a dummy property to the object containing a method (this makes the object partially inferrable):\r\n[TS playground with a dummy property added](https://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMDr7BJk2xk3ZQABk+PRmCwd0YMzmCy0yJMewOVS+P20j1G7XGzjCllZWP0Di0WygRVK5WEaFw6igaB6YIAsuQ0AALSbQQjaE7Sc4GUKuKAms4XLTW86Qoi+AD6ytN1GW0lqqUamWyrTtpwdgg4jBK2EwZh4nTJgnVvRM2r1BqI0IZTIGjCBkHMk2oQPuvlhahJCRzZjzpYJtlwVertjhwEYABYAEyF+u2frFIhcNOdqA9YDISh4IFwbAAETe5CBQgHuw71cX5KXK92HCEQA)\r\n\r\nEspecially given that a dummy property fixes the problem it looks like a weird design limitations.\r\n\r\nWhat I've learned when debugging this:\r\n1. methods + functions with arguments are context sensitive and in `checkFunctionExpressionOrObjectLiteralMethod` they return `anyFunctionType`\r\n2. `anyFunctionType` has `ObjectFlags.NonInferrableType` on it\r\n3. this flag is \"propagating\" and thus is set on the \"parent\" object\r\n4. `uninstantiatedType` for the `on` property of this argument gets computed to `{}` (so it's empty~)\r\n5. and thus it doesn't pass `isPartiallyInferableType` check when resolving the structure of the reverse mapped type, since the object has `ObjectFlags.NonInferrableType` on it AND there are no other properties that would be treated as partially inferrable\r\n6. since no structure is resolved for this mapped type the `unknown` is returned for the `states` property\r\n7. this in turn makes `initial` property to error because `keyof unknown` is `never`\r\n\r\nwhile a workaround is \"known\" here (we've learned this hard way though)~ the whole thing still has some problems because we can't provide a param type for the arrow functions contained in `on` property because once we add any unannotated params to an arrow function it becomes context-sensitive and results in a similar problem:\r\n[TS playground with context-sensitive arrow function](https://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMABKcWwlDMGnUlEm1EeRCo1EYNLpXHwvFZcGoOwS+18-N2UAAZPj0ZgsHdGDM5gstMiTHsDlUvj9tI9Ru1xs4wpYZVj9A4tFsoEVSuVhGhcOooGgemCALLkNAAC0m0EI2hO0nOBlCrig3rOFy0QfOkKIvgA+lafcyJNJaqlGplsq1Q6dw4IOIwSthMGYeJ1+YI7b0TE7Xe6iNDxZKBowgZBzHSgfdfLC1Ixa7Zm2Y6d2ErZcIOCQT+sVGIyaOzeD2x7YesBkJQ8EC4NgACJvchAoQL2y7dsLo9849QU+7DhCIA)\r\n\r\nRelated to https://github.com/microsoft/TypeScript/issues/40439","author":{"url":"https://github.com/Andarist","@type":"Person","name":"Andarist"},"datePublished":"2022-04-21T10:23:46Z","url":"https://github.com/microsoft/TypeScript/issues/48798"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:100cf317-f0e8-1d13-3ae6-a62c884db6d9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE3AA:2270F4:BC0918:FBAEFD:6B00F528
html-safe-nonce79b3b10c472d6bcd340b6b96a7969f19a867ee718dbabd3de40b901b6aa38eb7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0FBOjIyNzBGNDpCQzA5MTg6RkJBRUZEOjZCMDBGNTI4IiwidmlzaXRvcl9pZCI6IjQ1ODI2NDQzNzA0OTAwNjIxMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccfe2729decbe712a46f74262508f2a5d4a82046866a6c8e352df9785ff3e3fad
hovercard-subject-tagissue:1210827062
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/48798/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2dea5d3dfd1abdf1881b973f69b5cc200310e7cb104f5023fea9de4a3f71db2f/microsoft/TypeScript/issues/48798
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2dea5d3dfd1abdf1881b973f69b5cc200310e7cb104f5023fea9de4a3f71db2f/microsoft/TypeScript/issues/48798
og:image:altBug Report 🔎 Search Terms reverse mapped types, circular type, partially inferrable ⏯ Playground Link Playground link with relevant code 💻 Code type AnyFunction = (...args: any[]) => any; type Infe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndarist
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/48798#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F48798
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F48798
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/48798
Reloadhttps://github.com/microsoft/TypeScript/issues/48798
Reloadhttps://github.com/microsoft/TypeScript/issues/48798
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests308 (308)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48798
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48798
Reverse mapped type with a circular type param sometimes not treated as partially inferrablehttps://github.com/microsoft/TypeScript/issues/48798#top
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Apr 21, 2022https://github.com/microsoft/TypeScript/issues/48798#issue-1210827062
Playground link with relevant codehttps://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMDr7BJk2xk3ZQABk+PRmCwd0YMzmCy0yJMewOVS+P20j1G7XGzjCllZWP0Di0WygRVK5WEaFw6igaB6YIAsuQ0AALSbQQjaE7Sc4GUKuKAms4XLTW86Qoi+AD6ytN1GW0lqqUamWyrTtpwdgg4jBK2EwZh4nTJgnVvRM2r1BqI0IZTIGjCBkHMk2oQPuvlhahJCRzZjzpYJtlwVertn6xSIXDT9dsPWAyEoeCBcGwABE3uQgUI21BdoX6xPyZPx4XdhwhEA
TS playground without conditional type applied at the argument positionhttps://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAwg9gOwGYEsDmAeAKgcQDZwBGAhngDRRYDKwxw0AvFAAoBOcY2+RpFARAGda9AXwB8YqEwDeAKChQhdCAIBcUOQoUBtGsoDSEEFBQIoAayNwklPfQC66zVoWIA-E4C+AbnlaffgGeUABkGn6mKMAopOqWINa2whC+AbKgkCzsnFgU+pJM+lAQAB70CAAmAhZWNlhQbpTa+vZQ6ggQAG4QrL6yAMaIQlD9rBDKALLE-QAWpoxQ2PDI6MVlEJXVy6iYWNvoEgAUfgD6gyto6nuIO7IAlOqdcCgVUpLSaaPj9FOz84fOSLRWJQPiQSqmNB8Mh+JQiJx+BTgiqQhEuVwINHohQVRAQQ53cLYlxjYAAV1YZj4CDgABE6MQ+L5iVBPDDsWzEaz2dzZJ47r4gA
TS playground with a dummy property addedhttps://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMDr7BJk2xk3ZQABk+PRmCwd0YMzmCy0yJMewOVS+P20j1G7XGzjCllZWP0Di0WygRVK5WEaFw6igaB6YIAsuQ0AALSbQQjaE7Sc4GUKuKAms4XLTW86Qoi+AD6ytN1GW0lqqUamWyrTtpwdgg4jBK2EwZh4nTJgnVvRM2r1BqI0IZTIGjCBkHMk2oQPuvlhahJCRzZjzpYJtlwVertjhwEYABYAEyF+u2frFIhcNOdqA9YDISh4IFwbAAETe5CBQgHuw71cX5KXK92HCEQA
TS playground with context-sensitive arrow functionhttps://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMABKcWwlDMGnUlEm1EeRCo1EYNLpXHwvFZcGoOwS+18-N2UAAZPj0ZgsHdGDM5gstMiTHsDlUvj9tI9Ru1xs4wpYZVj9A4tFsoEVSuVhGhcOooGgemCALLkNAAC0m0EI2hO0nOBlCrig3rOFy0QfOkKIvgA+lafcyJNJaqlGplsq1Q6dw4IOIwSthMGYeJ1+YI7b0TE7Xe6iNDxZKBowgZBzHSgfdfLC1Ixa7Zm2Y6d2ErZcIOCQT+sVGIyaOzeD2x7YesBkJQ8EC4NgACJvchAoQL2y7dsLo9849QU+7DhCIA
#40439https://github.com/microsoft/TypeScript/issues/40439
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48798#issuecomment-1108800746
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on Apr 25, 2022https://github.com/microsoft/TypeScript/issues/48798#issuecomment-1108823903
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Apr 27, 2022https://github.com/microsoft/TypeScript/issues/48798#issuecomment-1110919268
herehttps://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMDr7BJk2xk3ZQABk+PRmCwd0YMzmCy0yJMewOVS+P20j1G7XGzjCllZWP0Di0WygRVK5WEaFw6igaB6YIAsuQ0AALSbQQjaE7Sc4GUKuKAms4XLTW86Qoi+AD6ytN1GW0lqqUamWyrTtpwdgg4jBK2EwZh4nTJgnVvRM2r1BqI0IZTIGjCBkHMk2oQPuvlhahJCRzZjzpYJtlwVertjhwEYABYAEyPAD0HaYZgrcGoUGA+ssAFtyNRMGg7kMoGdDGpB7roGAlJEBhARwkCf1ikQuGn67YesBkJQ8EC4NgACJvchAoSHqC7Qv15-kl9Pwu7DhCIA
this playgroundhttps://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAggdiAYgVzgY2ASwPZygXigAoA6MgQwCcBzAZwC4pyEBtAXQEoCA+JhAbgBQg0JCgBJOADMIlAHJVK2AO4RawADwAVXoS1QIAD2AQ4AE1p8QgqFAD8UfUZPnL8JKgw44N2-ce+toxOxqYWUNgARgBWEBiB-pIy8ooqasAA8jFxmjoJwb6McBAAbrJCIuDQSbIKlEqq6lmxGNq6UADevpQQ5Ga4ADYgUCwA0lCYeADWECDYUo5sjDUp9Wnq2mNs3EIAvhWi0ADCuFKY1NoA4gNR5AMANI4AysDkJgRQAApKYFc3kXdHgAidRvNRA7jtLq2UEmBidBIsF5g0azCbTWbzZ6vExLBF+Py4OyMaEEvxw4DEqBwZAAW0isgSBP6xSpRC4+F46kok2oTKg+wSgtsgt2UAAZPj0ZgsHdGDM5gstMiTHsDlUvj9tI9Ru1xs4wpYFVj9A4tFsoEVSuVhGhcOooGgemCALLkNAAC0m0EI2hO0nOBlCrig-rOFy0YfOkKIvgA+naA9RltJaqlGplsq1I6do4IOIwSthMGYeJ1BYInb0TG7Pd6iKTJjLMHKoEDIOZeUD7r5YWoSQkO2ZeQOyRE4KOx1AKYwACwAJkeAHolxMFj1adgyhNgNOPaY99AAAZN2UDI9QMA-WSgAxrSi0fm2FkQdlSqdQHrAZCUPAAcmYWhVEoP8oBXPdMEsL8fzwQ4oGoCBgEsO16hyIZpyqABaT04hmUtlH3PBVCgD1yG3I8KQvK9sEgShbyfAUezHXYmL8FjfHY3YOCEIA
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Apr 27, 2022https://github.com/microsoft/TypeScript/issues/48798#event-6508238732
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 4.8.0https://github.com/microsoft/TypeScript/milestone/163
on Apr 27, 2022https://github.com/microsoft/TypeScript/issues/48798#event-6508245930
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Apr 27, 2022https://github.com/microsoft/TypeScript/issues/48798#event-6508246153
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Apr 27, 2022https://github.com/microsoft/TypeScript/issues/48798#issuecomment-1111177742
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Apr 27, 2022https://github.com/microsoft/TypeScript/issues/48798#issuecomment-1111181403
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
TypeScript 4.8.0https://github.com/microsoft/TypeScript/milestone/163
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Aug 17, 2022https://github.com/microsoft/TypeScript/issues/48798#event-7208023095
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Aug 17, 2022https://github.com/microsoft/TypeScript/issues/48798#event-7208023685
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/48798
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/48798
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.