Skip to content

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

Description

@mighdoll

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions