Skip to content

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

Description

// @declaration: true// @isolatedDeclarations: trueexportinterfaceFoo<T,U=T[]>{}exportfunction/**/foo(x: Foo<string>){returnx;}

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