Use only the relevant declarations (by collecting them in the for loop), and use `declaration` if `getNameOfDeclaration` didn't work (useful for `export default` with anonymous functions). Fixes #39804. Also, use `nodeIsPresent` once, and a random `?.`.
4 lines
122 B
TypeScript
4 lines
122 B
TypeScript
export default interface A { a: string; }
|
|
export default function() { return 1; }
|
|
export default function() { return 2; }
|