Skip to content

Isolated declarations quick fix explicitly prints out default type arguments #58449

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
// @declaration: true
// @isolatedDeclarations: true

export interface Foo<T, U = T[]> {
}

export function /**/foo(x: Foo<string>) {
    return x;
}

Request a quick fix at /**/.

Current:

Add return type 'Foo<string, string[]>'.

Expected:

Add return type 'Foo<string>'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions