René's URL Explorer Experiment


Title: Probable bug: Functional properties don't get inferred with circular type parameter constraints like `T extends M` · Issue #40439 · microsoft/TypeScript · GitHub

Open Graph Title: Probable bug: Functional properties don't get inferred with circular type parameter constraints like `T extends M` · Issue #40439 · microsoft/TypeScript

X Title: Probable bug: Functional properties don't get inferred with circular type parameter constraints like `T extends M` · Issue #40439 · microsoft/TypeScript

Description: TypeScript Version: 4.0.2 Search Terms: Circular type parameter constraint, functional property inference, function parameter inference, function argument inference Code: declare const m: >(m: T) => T type M

Open Graph Description: TypeScript Version: 4.0.2 Search Terms: Circular type parameter constraint, functional property inference, function parameter inference, function argument inference Code: declare const m:

X Description: TypeScript Version: 4.0.2 Search Terms: Circular type parameter constraint, functional property inference, function parameter inference, function argument inference Code: declare const m: <T ext...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Probable bug: Functional properties don't get inferred with circular type parameter constraints like `T extends M\u003cT>`","articleBody":"**TypeScript Version:**\r\n4.0.2\r\n\r\n**Search Terms:**\r\nCircular type parameter constraint, functional property inference, function parameter inference, function argument inference\r\n\r\n**Code:**\r\n```typescript\r\ndeclare const m: \u003cT extends M\u003cT>>(m: T) => T\r\ntype M\u003cSelf, K = Exclude\u003ckeyof Self, \"k\" | \"t\">> =\r\n  { a?: number\r\n  , b?: number\r\n  , c?: number\r\n  , d?: number\r\n  , k?: K\r\n  , t?: (k: K) => void\r\n  }\r\n\r\n// :)\r\n// Case 1\r\nm({\r\n  a: 1,\r\n  b: 2,\r\n  k: \"a\"\r\n})\r\n\r\n// :)\r\n// Case 2\r\nm({\r\n  a: 1,\r\n  b: \"x\", // expected error\r\n  k: \"c\" // expected error\r\n})\r\n\r\n// :(\r\n// Case 3\r\nm({ // type parameter becomes `unknown` (probably because t's first parameter is `any` initially kinda?)\r\n  a: 1,\r\n  b: 2,\r\n  k: \"a\", \r\n  t: k => {} // k is inferred as `never` (instead of `\"a\" | \"b\"`)\r\n})\r\n\r\n// :|\r\n// Case 4\r\nm({\r\n  a: 1,\r\n  b: 2,\r\n  k: \"a\", \r\n  t: (k: \"a\" | \"b\") => {} // have to explicitly type `k` which could have been inferred :(\r\n})\r\n```\r\n\r\n**Expected behavior:**\r\nThe parameter `k` of `t` should be inferred as `\"a\" | \"b\"`. As property `k` already gets inferred in Case 1 & 2, so why not the `k` parameter of `t`\r\n\r\n**Actual behavior:**\r\nThe parameter of `t` is inferred as `never` and `T` in inferred as `unknown`. I assume first `T` gets resolved to `unknown` as `t` is initially inferred as `(k: any) => void` which does not satisfy the constraint of `m`.\r\n\r\n[Playground](https://www.typescriptlang.org/play?#code/CYUwxgNghgTiAEYD2A7AzgF3gWwFzwB4AVeEADwxBWDXgFliA+RgCj3iIEp4BeRjgFAYAngAcEDAMogIAMwA08ANK94AUTKQArqAIBrEMKSz40uYoBEei-AA+8CxgvNeA+PADe8KAH58KLWwAIxAYN3hFIL94AODQ8MUwaNiQsPdFYGTA1IT4PWilXIxolj18JW4+eAA3JABLYHCAXwEBAHo2+FxOds6AYSg0BABGAWwWD3CofGH5cKD8ACY59zKHKAsBJp7erp6O+AGh+EWxiamZlfgFhzILRQPycTBKYFIYGCQ0vPwLMBtHmRnq93p8wttWgdcCxdkcEABmM5eA4icTwUSwKDYECUGDXcBIbG0AAGWhQehQSAA7ihifAWKJPkEoEEIMJ8WAoFpjhgAOS0WR1GCYdGY7G4+B1ElQFDCOl1FB1DB1KAQNl5BXAXw9dzTeCzeZLK5rCwbRThDD4PS8fgeJrwA7WqWSlCyUJwN6DeDElAgaqhOksBWYEBQN7Gb2mmz2CxBCzEnoQ3a4WywwYIAAsSIu+quN2W4RNZvgFvwpV+GzsDjjlVt9oOAAsoP74BgkKQgRA6mAlerUQhiXo6VSG92G4gkFoIG8my2QlQXW6PiA3tCtpwgA)","author":{"url":"https://github.com/devanshj","@type":"Person","name":"devanshj"},"datePublished":"2020-09-08T20:17:13Z","url":"https://github.com/microsoft/TypeScript/issues/40439"}

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:ebd6214d-bdc5-1e2a-8fc9-bf7a49469879
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id864C:882E2:B79B9C:F3F155:6B00EC9F
html-safe-nonce01d01d4919ea09c4d5db694bffd422c8178b8b0ac31aadebbcdaa4698e58cdb3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjRDOjg4MkUyOkI3OUI5QzpGM0YxNTU6NkIwMEVDOUYiLCJ2aXNpdG9yX2lkIjoiNDQxNzQ1MDY1MTE1NjU0MDU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb0854802e0e6c3301399edf3ccb62fde1f80ebfbfcb395cf94f7ac2d3fcf1778
hovercard-subject-tagissue:696148717
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/40439/issue_layout
twitter:imagehttps://opengraph.githubassets.com/832b1032df8acb385ee5ec0ed4e6d1f01c0703bcf2701aa3e7f6be35ad16fac7/microsoft/TypeScript/issues/40439
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/832b1032df8acb385ee5ec0ed4e6d1f01c0703bcf2701aa3e7f6be35ad16fac7/microsoft/TypeScript/issues/40439
og:image:altTypeScript Version: 4.0.2 Search Terms: Circular type parameter constraint, functional property inference, function parameter inference, function argument inference Code: declare const m:
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedevanshj
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/40439#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F40439
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%2F40439
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/40439
Reloadhttps://github.com/microsoft/TypeScript/issues/40439
Reloadhttps://github.com/microsoft/TypeScript/issues/40439
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/40439
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/40439
Probable bug: Functional properties don't get inferred with circular type parameter constraints like T extends Mhttps://github.com/microsoft/TypeScript/issues/40439#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/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Sep 8, 2020https://github.com/microsoft/TypeScript/issues/40439#issue-696148717
Playgroundhttps://www.typescriptlang.org/play#code/CYUwxgNghgTiAEYD2A7AzgF3gWwFzwB4AVeEADwxBWDXgFliA+RgCj3iIEp4BeRjgFAYAngAcEDAMogIAMwA08ANK94AUTKQArqAIBrEMKSz40uYoBEei-AA+8CxgvNeA+PADe8KAH58KLWwAIxAYN3hFIL94AODQ8MUwaNiQsPdFYGTA1IT4PWilXIxolj18JW4+eAA3JABLYHCAXwEBAHo2+FxOds6AYSg0BABGAWwWD3CofGH5cKD8ACY59zKHKAsBJp7erp6O+AGh+EWxiamZlfgFhzILRQPycTBKYFIYGCQ0vPwLMBtHmRnq93p8wttWgdcCxdkcEABmM5eA4icTwUSwKDYECUGDXcBIbG0AAGWhQehQSAA7ihifAWKJPkEoEEIMJ8WAoFpjhgAOS0WR1GCYdGY7G4+B1ElQFDCOl1FB1DB1KAQNl5BXAXw9dzTeCzeZLK5rCwbRThDD4PS8fgeJrwA7WqWSlCyUJwN6DeDElAgaqhOksBWYEBQN7Gb2mmz2CxBCzEnoQ3a4WywwYIAAsSIu+quN2W4RNZvgFvwpV+GzsDjjlVt9oOAAsoP74BgkKQgRA6mAlerUQhiXo6VSG92G4gkFoIG8my2QlQXW6PiA3tCtpwgA
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Sep 8, 2020https://github.com/microsoft/TypeScript/issues/40439#event-3742663840
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Sep 9, 2020https://github.com/microsoft/TypeScript/issues/40439#issuecomment-689404145
Joe Calzaretta (@jcalz)https://github.com/jcalz
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Sep 9, 2020https://github.com/microsoft/TypeScript/issues/40439#issuecomment-689729651
* tears of joy *https://www.typescriptlang.org/play#code/CYUwxgNghgTiAEYD2A7AzgF3gWwFzwB4AVeEADwxBWDXgFliA+RgCj3gElQUMBLDAJ5MAlPAC8jeEQBQ0wQAcEXKn0FNx0+PADeASADaAaXi8U8ANYgBSAGZSAurk1aXHNAAVopgPIAjAFbgGMRG9pLklNS0GDAAriDOLi4A-JzcqkJEoYyJSfD4WYb2zgC+sgpKHl4ofoFgwUSSYs4kEVQ08EgBQbmprRTttCwAdKNQ+FAoAvr2ohLwkwK5Wqk2UBBoCXn58DHxufhrGwlyAor0BADKIBA2ADTwxmLwAKJkkLGgBJbWdte3DwAROZAfAAD7wQEYQHMDRabQLZL4FCxbC+EAwZwPXxI+AotEYrGIXH49GYrQPYAk1FkonmXGGIkYXEscz4QxzSQANyQvGApVkAHpBfkAFTwaTYFjaZzjeAARjuzl8+AATEqtGzIVBAQ9nBh8OZxJJtCV4MKLCZaKYbBi4MAFrQAAaAnXgyG+QFO6QlYRAA
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
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 Sep 9, 2020https://github.com/microsoft/TypeScript/issues/40439#event-3748250481
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Sep 9, 2020https://github.com/microsoft/TypeScript/issues/40439#event-3748250539
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Jun 22, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-866289823
#44700https://github.com/microsoft/TypeScript/issues/44700
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 22, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-866330460
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 22, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-866341487
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Jun 22, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-866361322
xstatehttps://github.com/davidkpiano/xstate
txstatehttps://github.com/devanshj/txstate
herehttps://github.com/davidkpiano/xstate/pull/1999
this PRhttps://github.com/cassiozen/useStateMachine/pull/36
this test casehttps://github.com/devanshj/useStateMachine/blob/6a639c2b517e3208e33ab407fa89e804830d202a/test-d/useStateMachine.test-d.ts#L632-L649
This same is the problem with xstate toohttps://github.com/devanshj/txstate/blob/d195b5170db31ed83c13109ecb8c3698a5e18a48/src/MachineDefinition/MachineDefintion.Entry.spec.ts#L112
this test casehttps://github.com/devanshj/useStateMachine/blob/6a639c2b517e3208e33ab407fa89e804830d202a/test-d/useStateMachine.test-d.ts#L632-L649
David Khourshid (@davidkpiano)https://github.com/davidkpiano
Mateusz Burzyński (@Andarist)https://github.com/Andarist
Cassio Zen (@cassiozen)https://github.com/cassiozen
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Jun 22, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-866369685
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Jun 22, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-866373682
Playgroundhttps://www.typescriptlang.org/play#code/K4ZwpgygLghlYFkYGMAWBLAdmAFAbwCgACIrdKdGAGwC4iAiGegGmKOQHtN4APKOvEQBmHDnQCMRAL6sSIWPBAC2JGMpIaiXdZo0ANOvQBG9FRqlmZZozs1ghQsMn5EADkQC8APiKFdG1wA6Tm4wPkCRDk8PDyIAJiIzTQB6ZKIAASgQAFow1ycoXIAnIo4iohw8grAAEyIwErLhJsUKTABzAEokgOCuXigI0WjYxnpE-xIekiCwADcwbkCoAE98kYY9U0miVIys3J5852LS8sqj6rqGs+by1qwu6bdA+cXB1fWY0YBNbd0LJpAdICFJugQak4qDAimB2Fx5ERQJAFIgUBhsHQADwAEXqfEWNRARCQaCwYFxXi8OEhQjIFG0RAAkphHEUAHIw0oAdzA8gA8kYAFYFSmdTw+OYcdA1AgET5w0kYikQMBUIQ+WJsQT0yi0IgAazAKw4QiIAHEwFAsar1cwGPI4Hz6F42PaQgM6JbrbahPb6B6wlAXW6iI7FHQzIIANoQUiYQ3G00Wq02tV+h2okAugC6NGe0Cd7I4kLTdpTPvT9uj9HDzvtEBzVMsbAs8rWcML8GLpaV5IbVaI-ITsW9ZYz9C4Ls12q0mAA-PnNDGAKLxxMms3DvMk9HkrtgABq1GAFL72FdQND9kczkXPRwrhhMAAtlaGkvJoJA3w6OewAAwv0QZYv+l6TPabzcH+e7YCuCzcKBsFgOB-jApo4reEQUoyq2coKruZLYEBoR8EhREoZ4Fbkcq-o-sGroEf+B7HlQp40eSmobsmY7-v6dbZoxHaEcq8HvBxF6eLOCqfsuRCxuuRqbtRfGZk6gl5s8JBKTxqaqTWAksEQED+lOTY9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fICkKr6yh6S7Hqe55BpeJpEA8YDCC0yBQIBuY4Gs4QwAONytEBeh-lEJL8AeiFVtwtIRtsIakYSWRwjwVFLoWrFjBejFMeYpETNMcwLEszFJj2gFEIwYhUGAG7eMsN4wdsNEUdxiGHB+j7UrRbz0hamyIXB-qlDx77gYKWmIeKsZ6iGBnKSUnG5OpS6-kQQgGSRWiDCMmHwaUHJclgvL8pZ4baTqzJ2bK26aL5owBakIFgWFQoRdZRAxrq8Zfpg9BGrFTFMRlS7RlFUoOnl+qFkacWmrxWjSLxZoOeGAAqDwAAoPPY75rtUJSBO5XXprkmYWUK7WhkQ7Xsl10pECRo1vONBTsot-ymO1Y3ugNaFDQCRB9XQO3Lbtmbsl88IANISA8AB0T3XT8N2uJtph3RdBSTbNAK5h17J3dKDxvb10KmCd7Cwq016Wgl-kmak7WaXNv3tdKcORDWdadUQACqqPfQTR1nQTADcimWk03wdCWPR9GMKNTOwO2re6G4rDNOB-ezmY4E9D3qEQnMbYJMyc6TS1xWzbqZpwwyjEdNOtHTXS9AMiuYcjEPFdNAn7kQMOuFTkQq+0nQM5rflM+5QgRDAgTcFQKxZTdqUQbN0Hm2rVtM0DabSEAA
enforcing ids are uniquehttps://github.com/devanshj/txstate/blob/d195b5170db31ed83c13109ecb8c3698a5e18a48/src/MachineDefinition/MachineDefinition.TargetPath.spec.ts#L61-L79
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Jul 6, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-874964330
Playgroundhttps://www.typescriptlang.org/play#code/PTAEEkDsEsBdoIYBtTQM5oK4FMBQBjAJ2wVmwFkF8ALaSbARgAoBvXUVGeZALlACIE-ADTtQ+APaQyAD1h8WoAGYSJfBqAC+ojmlilsaBWI4JjHC6GzTCATz4AHUAF4AfKEUhQT9KASRbUB4mEwtNUPCOcM0ASlxcLwB3OGoISCVsQgA5BEJCCUTDWAB5ACMAK2x8WFBEiUIAa1yJTEgAEwJiA0oaOmw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ryavdoA-FQYG5zc03MLS6FlCp4aq1e5qKzqCE2eqNZozeaLZYAFSGeGOSOu6I6MTiEFQ2jwLzwAAY8FR0JUltcgA
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Jul 19, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-882155724
Playgroundhttps://www.typescriptlang.org/play#code/PTAEGMHsFsAcEsA2BTAzgKHAJ2QQwC7ICyu4AFvAHbIAUA3uqKFfPvLogFygBEuPAGkahU+Amm4MmTXJIC+Q6aABG84XPRyAlOnQhQuACaHQySviwBPA5ROtQhyGkoByfBBgIUmHOJLkqWilmSlZ2Ll5+RRExQlRJYRkEpSYzC0tuAGtQAF4APlA6OVB9ZWRwXABXVGRQbMdnN1AAc2R3KgAzZCwcQ0TQBX7VQo0mDW1dfVxKSkhY2rSrUHwyAg9KxBNVgDdasrMQrp7kE2m7dyg4JDQfPEJ-Cmp6YRY2Dm4+QWFRcXjC-tk-xSpnMVm4NEyH34WlyBSK-UGSmG8LGmh06EM5UQuBwHkooggvnupEeyE4wgAPKAACLIDqveCQSimAAehFsGGBdBCYXedWQlkgHRpdIZTIA2jwfnEeABdfpMAQxX7k4FKbnigDSIX5guFtPpoTYEql81QctlqrVXJB6QA-ODIaBNTD8qBtpB4H1rcDRj6-Uo-Xl+jRMYawkzuAaxZRXcGbWGY1HRUbGZQFQMgA
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Jul 26, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-886920832
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
this workaroundhttps://github.com/microsoft/TypeScript/issues/40439#issuecomment-689729651
@cassiozen/usestatemachinehttps://github.com/cassiozen/useStateMachine
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Aug 16, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-899787797
Devansh Jethmalani (@devanshj)https://github.com/devanshj
https://github.com/devanshj
Devansh Jethmalani (devanshj)https://github.com/devanshj
on Aug 16, 2021https://github.com/microsoft/TypeScript/issues/40439#issuecomment-899819128
herehttps://github.com/microsoft/TypeScript/issues/44999#issuecomment-883531098
herehttps://github.com/microsoft/TypeScript/issues/40439#issuecomment-866330460
herehttps://github.com/microsoft/TypeScript/issues/45035#issuecomment-883721610
it doesn't workhttps://www.typescriptlang.org/play#code/C4TwDgpgBAyhA2AzGwCGwIGcA8BpCImUEAHhgHYAmRmwATgJbkDmAfFALxQDeA2rlCZR8hALoAuHsXL0QAfkkAKANaTcASk7sAbgHsGlKAF9jAKFCQoAEQiImDYA13lsASXIOGqeABpYaDEx2Lm5BD0dvSXdPbz9adCxJFASiIwBuU0oIAGN4VDpoRABXcmzHZyhsgoSAWVRsgAsmCAAmbGSMADlUAFssYjIIKiJlAl1EfxS-Dv7SCmpYBGQArHaV7r6iADIoWkYWVlZFLMRJGztwpxcZjaxplaD1M9t7cuv13rvJwNYM0yqILV6k1yK1FNxTFAwjF4JIAESoOE+SG7B6SCFQqGodEozHSWSSZRaHimXGYoxkozIvEAIxxeKhQwJUCJHHYGIZULJUIpeN5ZiM6iAA
assert initial to be union of stateshttps://www.typescriptlang.org/play#code/C4TwDgpgBAyhA2AzGwCGwIGcA8BpCImUEAHhgHYAmRmwATgJbkDmAfFALxQDeA2rlCZR8hALoAuHsXL0QAfkkAKANaTcASk7sAbgHsGlKAF9jAKFCQoAEQiImDYA13lsASXIOGqeABpYaDEx2Lm5BD0dvSXdPbz9adCxJFASiIwBuU0oIAGN4VDpoRABXcmzHZyhsgoSAWVRsgAsmCAAmbGSMADlUAFssYjIIKiJlAl1EfxS-Dv7SCmpYBGQArHaV7r6iADIoWkYWVlZFLMRJGztwpxcZjaxplaD1M9t7cuv13rvJwNYM0yqILV6k1yK1FNxTFAwjF4JIAESoOFQVBEBFIgA+UDhACM4T5IbsHpIIVCoahiQTSdJZJJlFoeKZKaSjEyjPiqdiKVSoUMaVA6Rx2BCmVCWVSxWYjOogA
doesn't workhttps://www.typescriptlang.org/play#code/C4TwDgpgBAyhA2AzGwCGwIGcA8BpCImUEAHhgHYAmRmwATgJbkDmAfFALxQDeA2rlCZR8hALoAuHsXL0QAfkkAKANaTcASk7sAbgHsGlKAF9jAKFCQoAEQiImDYA13lsASXIOGqeABpYaDEx2Lm5BD0dvSQA5XXdECDo3cK94Vj9adCxJFEyiIwBuU0oIAGN4VDpoRABXchLHZygSysyAWVQSgAsmCAAmbByMKNQAWyxiMggqImUCXUR-XL9B8dIKalgEZACsAZ3hsaIAMihaRhZWVkVixEkbO2TnPcyDrGWdoPU723sGlxXXph3rlWIVzOBoDE4glsAAVYJQXiw0RIibrIiocggKByKAABigknIEG0CVEplMzQgbQ63WJvUU3FMUDCnkiUAARKgOT5macPpImSyWahBXzhdJZJJlFoeBSJSyjOLjLyJQAjMUKyV0EDS2VM5WK5VKo1GdRAA
not require the user to write as consthttps://www.typescriptlang.org/play#code/PTAEGMHsFsAcEsA2BTAzgKHAJ2QQwC7ICyu4AFvAHbIAUA3uqKFfPvLogFygBEuPAGkahU+Amm4MmTXJOHTQkSgDlkAD3zceAYlQxkASQAmPeaAC+QhQCM5CpvCNa90QybPnhn8wEp06EFBcIyNQZEp8LABPIMpQ1lAjSDRKAHJ8CBgEFEwccRJyKlopZkpWdi5efisRMUJUO2lZUBKFJVUNLV19Y0EzJnDIqO4Aa1AAXgA+FvNQQOtkcFwAV1RkUDGklPTQAHNkDKoAM2QsHCMPGqZbFv7mJ14XN1MFTyZvPwCwXEpKSDr1oNoqB8GQCJllohQmCAG7rBbhUonM7IUI-eIZKBwJBoXJ4QgFCjUejCFhsDhaarCUTiBq3BTNVrSdrqTS8bquXpXaRA4agGgjSk8HwTaZ0N7SSxmG5MhwPHhPXoeLzoXz+IyLRC4HCZSiiCB5AmkInITjCAA8oAAIsgjmT4EowhpwkYMPYWqVyhSNsgopAjtbbfalABtBUA1A8AC6dwEtVpZvdCjooBDAGlSj6-QGbXaymxQ+HadGo4mk+6U44APzcXPByhhmn1aPpqNhxzRp2EOKoJGnUDGUBVgeUZEAZUiVF2ABlWKcOObjNNuNQ4Vg7uW4yyNDXQBvy9IAD5Z-2BvPlQtNtDR-cH0DHlMhseZka+091-MOhtF5tR0u3u97A-C9vyvSM2zHKMuxdXtKweY5+0HWZhwAA20AASOhBwAMlqLAp3MFDQBXZA1wAu9zBDV9szPetGwjEtyOkONeV3AVuDTEUplAGFIEcJj3gAiVXmESYzBoDVzwLShayDT8lC4sSK0SOSQNkqSvzuTx0HwKJYHWAxR1OCd8MoGc5ywBcABVpnGYQrOgns8KnIdQAc7hRFM3Z0CAA
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Apr 21, 2022https://github.com/microsoft/TypeScript/issues/40439#issuecomment-1105029279
#48798https://github.com/microsoft/TypeScript/issues/48798
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/40439
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/40439
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.