Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnionToIntersection fails sometimes, but there's a fix #198

Open
mighdoll opened this issue Jul 4, 2024 · 0 comments
Open

UnionToIntersection fails sometimes, but there's a fix #198

mighdoll opened this issue Jul 4, 2024 · 0 comments

Comments

@mighdoll
Copy link

mighdoll commented Jul 4, 2024

Description

UnionToIntersection fails in some cases. I posted about an example failure, and later about a fix to UnionToIntersection.

Steps to Reproduce

Playground link

Expected behavior

Suggested solution(s)

change infer I to infer I extends U in UnionToIntersection.

Project Dependencies

fix requires TS 4.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant