Skip to content

Support nested type parameters #214

Closed
@jameslong

Description

@jameslong

E.g. you cannot have an interface and function which satisfy the types:

interface InterfaceA<U>
function<U extends InterfaceA<V>>(value: U): U 

This means you cannot make generic functions to handle derived types unless you are willing to lose the type information for the return value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions