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.
TypeScript Version: 2.5.3
Code
Expected behavior:
It is possible, somehow, to
Find all referencesof the exported anonymous function declaration.Actual behavior:
It is not possible to
Find all referencesthrough any means other than temporarily giving the function declaration a name; or to import it from somewhere else and try toFind all referencesof 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 referencesof thedefaulttoken inexport defaultwould find the references to the default export.