Skip to content

Support type inference in conditional types ('infer') #101

@mjambon

Description

@mjambon

The following isn't supported at the moment:

type Elt<Container> = Container extends (infer X)[] ? X : never;

What's not supported is the infer X in the pattern (infer X)[].

Documentation: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#type-inference-in-conditional-types

Metadata

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