Skip to content

NoInfer TS 5.4 #2099

Open
Open
@david-shortman

Description

export type NoInfer<T> = T extends (infer O)[] ? _NoInfer<O>[] : _NoInfer<T>;

In TS 5.4, a native NoInfer type will be introduced. Then this type can be replaced.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions