Skip to content

Not possible to find-all-references for export default of anonymous type #19122

Closed
@Jessidhia

Description

@Jessidhia

TypeScript Version: 2.5.3

Code

export default function () {}

Expected behavior:

It is possible, somehow, to Find all references of the exported anonymous function declaration.

Actual behavior:

It is not possible to Find all references through any means other than temporarily giving the function declaration a name; or to import it from somewhere else and try to Find all references of the imported value.

This also affects anonymous classes and anonymous expression results.


In this case, the best case behavior would be that asking to Find all references of the default token in export default would find the references to the default export.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions