Skip to content

Commit

Permalink
Support exports.[identifier] syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 4, 2022
1 parent 22135df commit e787e5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ export async function run(configuration: Configuration) {
identifier = declaration;
} else if (declaration.isKind(ts.SyntaxKind.FunctionDeclaration)) {
identifier = declaration.getFirstChildByKindOrThrow(ts.SyntaxKind.Identifier);
} else if (declaration.isKind(ts.SyntaxKind.PropertyAccessExpression)) {
identifier = declaration.getLastChildByKindOrThrow(ts.SyntaxKind.Identifier);
} else {
identifier = declaration.getFirstDescendantByKind(ts.SyntaxKind.Identifier);
}
Expand Down

0 comments on commit e787e5d

Please sign in to comment.