Skip to content

rewrite recursive conditional types to be tail-recursive #255

@DetachHead

Description

@DetachHead

🍩 Feature Request

Is your feature request related to a problem?

many types in ts toolbelt use recursive conditional types, meaning that using them often results in stack depth errors.

Describe the solution you'd like

in typescript 4.5, tail-recursive conditional types are now optimized such that the recursion limit can be much higher (1000) instead of 100. see the blog post and microsoft/TypeScript#45711

Describe alternatives you've considered

Teachability, Documentation, Adoption, Migration Strategy

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