Skip to content

Unbound type parameter error for interface extending type #86

Closed
@davidfurey

Description

@davidfurey

When you extend a generic interface, typescript-is correctly identifies that you have bound the type parameter. If instead you extend a generic type alias, typescript-ts throws the error Unbound type parameter, missing type node.

Example with error

type Y<T> = {
    field: T;
}

interface X extends Y<string> { }

is<X>({ field: 'some-string' })

Example without error

interface Y<T> {
    field: T;
}

interface X extends Y<string> { }

is<X>({ field: 'some-string' })

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