René's URL Explorer Experiment


Title: ConditionalRoot.isDistributive is buggy · Issue #44019 · microsoft/TypeScript · GitHub

Open Graph Title: ConditionalRoot.isDistributive is buggy · Issue #44019 · microsoft/TypeScript

X Title: ConditionalRoot.isDistributive is buggy · Issue #44019 · microsoft/TypeScript

Description: Bug Report ConditionalRoot.isDistributive is a flag that indicates that a conditional "distributes" over union. Its set to true when the checkType is a TypeParameter. When its true, two main things happen: getIndexOfMappedType converts k...

Open Graph Description: Bug Report ConditionalRoot.isDistributive is a flag that indicates that a conditional "distributes" over union. Its set to true when the checkType is a TypeParameter. When its true, two main things...

X Description: Bug Report ConditionalRoot.isDistributive is a flag that indicates that a conditional "distributes" over union. Its set to true when the checkType is a TypeParameter. When its true, two m...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ConditionalRoot.isDistributive is buggy","articleBody":"# Bug Report\r\n\r\n`ConditionalRoot.isDistributive` is a flag that indicates that a conditional \"distributes\" over union. Its set to true when the `checkType` is a `TypeParameter`. When its true, two main things happen:\r\n\r\n - `getIndexOfMappedType` converts `keyof { [ K in Keys as DistributiveConditional\u003cK> ] : X }` to `DistributiveConditional\u003cKeys>` which is clearly unsound in many cases (this is the bug reported in #43920).\r\n - `instantiateConditionalType` attempts to undo what it assumes `getIndexOfMappedType` did. This sometimes prevents bugs that `getIndexOfMappedType` would otherwise have introduced, but for other cases can break the conditional.\r\n\r\nFor the first case, here's a simplified version of the example from #43920\r\n\r\n```\r\ntype KeysExtendedBy\u003cT,U> = keyof {[K in keyof T as U extends T[K] ? K :never] : T[K]};\r\ninterface M {\r\n  a: boolean;\r\n  b: number;\r\n}\r\nfunction f(x : KeysExtendedBy\u003cM,number>) {\r\n  return x;\r\n}\r\nf(\"a\"); // \u003c- f should only accept \"b\" as a parameter.\r\n```\r\nHere, `getIndexOfMappedType` optimizes `KeysExtendedBy\u003cT,U>` to `U extends T[keyof T] ? keyof T : never` (which is clearly wrong). And in this case, instantiateConditionalType can't fix it, because it only tries to spread on the checkType.\r\n\r\nThis can be fixed by adding a redundant guard:\r\n\r\n```\r\ntype KeysExtendedBy\u003cT,U> = keyof {[K in keyof T as T[K] extends unknown ? U extends T[K] ? K : never : never] : T[K]};\r\n```\r\n\r\nNow the top level conditional is not `isDistributive`, and we don't call `getIndexOfMappedType`.\r\n\r\nFor the second case:\r\n\r\n```\r\ntype Bug\u003cT, U> = U extends \"a\" ? T[U & keyof T] : never;\r\ninterface M {\r\n  a: boolean;\r\n  b: number;\r\n}\r\nfunction f(x : Bug\u003cM, \"a\"|\"b\">) {\r\n  return x;\r\n}\r\nf(false);\r\n```\r\n\r\nClearly, `\"a\"|\"b\"` does not extend `\"a\"`, so `f`'s parameter type should be `never`. But `instantiateConditionalType` notes that `root.isDistributive` is set (since `U` is a `TypeParameter`), and that `checkType` is a union (the keys of M), and so it replaces the conditional with `(\"a\" extends \"a\" ? M[\"a\"] : never) | (\"b\" extends \"a\" ? M[\"b\"] : never)` which reduces to `M[\"a\"]` which is `boolean`.\r\n\r\nI think these bugs show pretty conclusively that setting `isDistributive` whenever the `checkType` is a `TypeParameter` is broken. Perhaps only doing it when the checkType is a `MappedType`'s type parameter (ie the `K` above) would be safe; but even then I think it often relies on `instantiateConditionalType` to fix it. Consider eg:\r\n\r\n```\r\ntype KeysExtendingLiteral\u003cT> = keyof {\r\n  [K in keyof T as K extends \"b\" ? K : never] : T[K];\r\n}\r\ninterface M {\r\n  a: boolean;\r\n  b: number;\r\n}\r\nfunction f(x: KeysExtendingLiteral\u003cM>) {\r\n  return x;\r\n}\r\nf(\"b\");\r\n```\r\n\r\n`KeysExtendingLiteral` gets converted to `keyof T extends \"b\" ? \"b\" & keyof T : never` (you can see this by hovering over KeysExtendingLiteral in line 8 of playground example 3) - which again, is not the same thing. The original should evaluate to \"b\" whenever T has a \"b\" field, and never otherwise. The modified version evaluates to never unless T has a \"b\" field, and no other fields. However, in this case, we *do* get the correct results - because `instantiateConditionalType` converts it back to a union of individual tests - ie `(\"a\" extends \"b\" ? \"b\" & \"a\" : never)|(\"b\" extends \"b\" ? \"b\" & \"b\" : never)`\r\n\r\nMy proposal is to rip out the isDistributive code altogether. The delicate dance where we first transform to an incorrect conditional, hope nobody notices, and then transform it back again at the end seems horribly unsound.\r\n\r\nIf this is really important for type inference, maybe the solution is to only call getIndexOfMappedType when the checkType is the MappedType's type parameter, and then set *another* flag to indicate the transformation was done, and have instantiateConditionalType check *that* flag. I'm not 100% convinced that's sound, but it should be much better than the current situation.\r\n\r\n### 🔎 Search Terms\r\n\r\nisDistributive\r\n\r\nI found #43920 (my own report) which turns out to be a special case of the problems with isDistributive, and #30152 which appears to be a different problem.\r\n\r\n### 🕗 Version & Regression Information\r\n\r\nIts present on master, and has been since at least 4.1.5\r\n\r\n- This is the behavior in every version I tried, and I reviewed the FAQ for entries about it.\r\n\r\n### ⏯ Playground Links\r\n\r\n[Example 1](https://www.typescriptlang.org/play?#code/C4TwDgpgBA0hIGcCiAPYEB2ATCWBCIAPACoA0AqgHxQC8UA1vAPYBmUA3gNoxQCWGDZm2JQAhgijkoENJiwTi3ALpQA-LCgAuDBABuEAE4rNURTCUBfANwBYAFD90BlqIDG0ALId7UMSYBGTEwANhCiGLZ2vv4mGACuALb+hpEW9ixxGK7AvEwCLAAUKFqw8Miy2LgEhB6k8UmGlACU3lFQBhDAcQYCKKnpBQBEooNNkUA)\r\n[Example 2](https://www.typescriptlang.org/play?#code/C4TwDgpgBAQgrgcwDwBUA0UCqA+KBeLKCAD2AgDsATAZygCIBDOqAfihQG1MoAyKAawggA9gDN2AXSgAuKOQgA3CACcA3AFgAUAEtyZZaIYBjaAFkoAby1QoDWQCNhwgDYQG5DZpv3Z5OAFt7FU8AXy1ROHIjYG1hcihRAApiGVhEJFMMRjoAHzp7OmwASktrKGUIYDhleOJQ8MTDZ2oIItUgA)\r\n[Example 3](https://www.typescriptlang.org/play?#code/C4TwDgpgBA0hIGcCiAPYEB2ATAlhg5gDI7oBOAhgDYA8AKgHxQC8UA1vAPYBmUA3gLAAoKFADaMKHjacetKOQSwoENJiyKARACMNUAPxKAXFAwQAbhFIBdKMdrirAbiEBfIXjJdyAY2gBZPiERcmMtDg5KCHIMZ2EoLWMMAFcAWy1LWLdBLiSMb2AcDgwoLgAKFGM4RFR0bDwiEksqaj96AEpAuNIIYCTSYpRMoTLtDTbYoA)\r\n\r\n### 💻 Code\r\n\r\n```\r\ntype KeysExtendedBy\u003cT,U> = keyof {[K in keyof T as U extends T[K] ? K : never] : T[K]};\r\ninterface M {\r\n  a: boolean;\r\n  b: number;\r\n}\r\nfunction f(x : KeysExtendedBy\u003cM,number>) {\r\n  return x;\r\n}\r\nf(\"a\");\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nThe call to f(\"a\") is deemed correct\r\n\r\n### 🙂 Expected behavior\r\n\r\nIt should fail because `number` does not extend `M[\"a\"]` which is boolean, so \"a\" should not be included in the keys of the mapped type (and note that it *isn't* included in the mapped type itself).","author":{"url":"https://github.com/markw65","@type":"Person","name":"markw65"},"datePublished":"2021-05-09T23:09:55Z","url":"https://github.com/microsoft/TypeScript/issues/44019"}

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:3cffbfae-f234-a002-c3d0-1cfa1d20ff37
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8600:38E318:436E2CF:5516823:6B026255
html-safe-nonce9e8bf3d51ed0ec2792b5e913bb483f4f5d34cc94759c4a54b7f2630749864006
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjAwOjM4RTMxODo0MzZFMkNGOjU1MTY4MjM6NkIwMjYyNTUiLCJ2aXNpdG9yX2lkIjoiNTMyNDQ5MDg5NTg4NDcwNjM4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9b529f8e22724b28326b7407aa6b615f54d420ae4ca163fc3633685587122759
hovercard-subject-tagissue:882947035
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/44019/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ea0a6ab7e3d1760b7edd160e1d6eda50be04b7b670ea63f8b4100a4fd397515f/microsoft/TypeScript/issues/44019
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ea0a6ab7e3d1760b7edd160e1d6eda50be04b7b670ea63f8b4100a4fd397515f/microsoft/TypeScript/issues/44019
og:image:altBug Report ConditionalRoot.isDistributive is a flag that indicates that a conditional "distributes" over union. Its set to true when the checkType is a TypeParameter. When its true, two main things...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemarkw65
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/44019#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F44019
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%2F44019
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/44019
Reloadhttps://github.com/microsoft/TypeScript/issues/44019
Reloadhttps://github.com/microsoft/TypeScript/issues/44019
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests313 (313)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/44019
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/44019
#44042https://github.com/microsoft/TypeScript/pull/44042
ConditionalRoot.isDistributive is buggyhttps://github.com/microsoft/TypeScript/issues/44019#top
#44042https://github.com/microsoft/TypeScript/pull/44042
https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 4.4.0 (Beta)https://github.com/microsoft/TypeScript/milestone/141
https://github.com/markw65
markw65https://github.com/markw65
on May 9, 2021https://github.com/microsoft/TypeScript/issues/44019#issue-882947035
Incorrect optimization for keyof Mapped type #43920https://github.com/microsoft/TypeScript/issues/43920
#43920https://github.com/microsoft/TypeScript/issues/43920
#43920https://github.com/microsoft/TypeScript/issues/43920
#30152https://github.com/microsoft/TypeScript/issues/30152
Example 1https://www.typescriptlang.org/play#code/C4TwDgpgBA0hIGcCiAPYEB2ATCWBCIAPACoA0AqgHxQC8UA1vAPYBmUA3gNoxQCWGDZm2JQAhgijkoENJiwTi3ALpQA-LCgAuDBABuEAE4rNURTCUBfANwBYAFD90BlqIDG0ALId7UMSYBGTEwANhCiGLZ2vv4mGACuALb+hpEW9ixxGK7AvEwCLAAUKFqw8Miy2LgEhB6k8UmGlACU3lFQBhDAcQYCKKnpBQBEooNNkUA
Example 2https://www.typescriptlang.org/play#code/C4TwDgpgBAQgrgcwDwBUA0UCqA+KBeLKCAD2AgDsATAZygCIBDOqAfihQG1MoAyKAawggA9gDN2AXSgAuKOQgA3CACcA3AFgAUAEtyZZaIYBjaAFkoAby1QoDWQCNhwgDYQG5DZpv3Z5OAFt7FU8AXy1ROHIjYG1hcihRAApiGVhEJFMMRjoAHzp7OmwASktrKGUIYDhleOJQ8MTDZ2oIItUgA
Example 3https://www.typescriptlang.org/play#code/C4TwDgpgBA0hIGcCiAPYEB2ATAlhg5gDI7oBOAhgDYA8AKgHxQC8UA1vAPYBmUA3gLAAoKFADaMKHjacetKOQSwoENJiyKARACMNUAPxKAXFAwQAbhFIBdKMdrirAbiEBfIXjJdyAY2gBZPiERcmMtDg5KCHIMZ2EoLWMMAFcAWy1LWLdBLiSMb2AcDgwoLgAKFGM4RFR0bDwiEksqaj96AEpAuNIIYCTSYpRMoTLtDTbYoA
https://github.com/markw65
markw65https://github.com/markw65
on May 9, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-835931359
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
#43920https://github.com/microsoft/TypeScript/issues/43920
https://github.com/markw65
markw65https://github.com/markw65
on May 10, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-836771639
interesting examplehttps://www.typescriptlang.org/play?ts=4.2.3#code/LAKAlgdgLgpgTgMwIYGMYAICy6Dep3pIBc6ARgPbkA2MSEA3PmSRAK4C2p8jIBKJAZyhxIAcx4BfUJFiJUGAHK4mxdEJERxTUoOFjJoUFACeABwwAhclAAW6ALzolAHyw8jZy61EAeACoANOgAqgB8Duh+6DAAHrAQACYCIegA-OgA1jDG5AiR6CwwAG7chiAIrBAoUGDkEOgIABQxJI1WttFxMInJ7XbpWTl5fQXoEMXwAJQA2gC6k8q86HAwUKxw9TEGIAD0O+gAwuRwK9VUxsswAFYw1ckARCj3apBomdm5jQrOmAv2-+8hl8FgAyQGfX4OAH3JDPVz3Uj3UB7SI2MDJOoYADuxwyyS4KCQrAEGFsGBQdQSYBqdSQVHQ6LG1nQ7CQcCyCXQ93RABF0XpSKwaiVngJXjBkfsyegUDZbhk-J4GckIMykJFPAAFNlIdireCgJrTGH3AII02Pe7zejoMoVKo0+qiZokCzeHx9IJ9UJzBZ4JYrNYbdBbUBSXb7ACSVWOpyg50IKDQpigDyeLyqpLlMrlKAVSoAVOiC4QNeZtXBdfq4EEBOR0GTJTLKdTahA6cqG5WIAIEMc9ZyoPWvp14kl0CMBh88kpCiU4AtXI1sLEx71rP1wXlsHOpqBncbYWbEWantbbSBQCgqEgBMkDh6N+F-QQmi10G0N6PuuPJ1uJ1+u4Lr6iwEAQgbrJsPAEOG4b2tUbboDYjR+kwFI9lAMoROMWKHI+tihCh0HoCiACCVC2OQ3h2NKCQwAgkCtnU6C5IcAB0eRUJQeKdKg8YXFQYBZA22aYg0xwNEEtjokwKJicgYBUPitxEiSAEdIy6qKuWOp6rIbFoRxjSHhaJ6WtaYZAA
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 May 10, 2021https://github.com/microsoft/TypeScript/issues/44019#event-4718696102
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on May 10, 2021https://github.com/microsoft/TypeScript/issues/44019#event-4718696727
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 10, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-836942149
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
https://github.com/markw65
markw65https://github.com/markw65
on May 11, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-838687694
https://github.com/ahejlsberg
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
on May 11, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-838922778
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
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 May 11, 2021https://github.com/microsoft/TypeScript/issues/44019#event-4730003391
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
TypeScript 4.4.0https://github.com/microsoft/TypeScript/milestone/141
on May 11, 2021https://github.com/microsoft/TypeScript/issues/44019#event-4730004533
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on May 11, 2021https://github.com/microsoft/TypeScript/issues/44019#event-4731686113
https://github.com/markw65
markw65https://github.com/markw65
on May 12, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-839306792
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 12, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-839893201
markw65https://github.com/markw65
https://github.com/markw65
markw65https://github.com/markw65
on May 12, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840125033
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840274071
https://github.com/markw65
markw65https://github.com/markw65
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840626787
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Anders Hejlsberg (@ahejlsberg)https://github.com/ahejlsberg
Distributive Conditional Typeshttps://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840683762
https://github.com/markw65
markw65https://github.com/markw65
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840729855
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840776736
https://github.com/markw65
markw65https://github.com/markw65
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840821377
documentationhttps://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840825924
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on May 13, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-840832184
https://github.com/markw65
markw65https://github.com/markw65
on May 14, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-841485937
https://github.com/markw65
markw65https://github.com/markw65
on May 15, 2021https://github.com/microsoft/TypeScript/issues/44019#issuecomment-841683022
Ryan Cavanaugh (@RyanCavanaugh)https://github.com/RyanCavanaugh
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#44042https://github.com/microsoft/TypeScript/pull/44042
on May 19, 2021https://github.com/microsoft/TypeScript/issues/44019#event-4769172066
microsofthttps://github.com/microsoft
on Oct 21, 2025https://github.com/microsoft/TypeScript/issues/44019#event-20417402987
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/44019
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/44019
Anders Hejlsberg (ahejlsberg)https://github.com/ahejlsberg
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
TypeScript 4.4.0 (Beta)https://github.com/microsoft/TypeScript/milestone/141
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.