Skip to content

Commit 31f01fd

Browse files
committed
refactor: use function signature
1 parent 822f7cf commit 31f01fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/package-overview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { SourceFile, SyntaxKind } from "ts-morph";
22

3-
export const packageOverview = (indexFile: SourceFile): string | undefined => {
3+
export function packageOverview(indexFile: SourceFile): string | undefined {
44
return indexFile
55
.getDescendantsOfKind(SyntaxKind.JSDocTag)
66
.find((tag) => tag.getTagName() === "packageDocumentation")
77
?.getParentIfKind(SyntaxKind.JSDoc)
88
?.getText();
9-
};
9+
}

0 commit comments

Comments
 (0)