Skip to content

Commit 7c404da

Browse files
committed
fix: Prevent crash in typeDeclarationTable
Signed-off-by: Ilya Boyandin <ilyabo@gmail.com>
1 parent 103ca89 commit 7c404da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typedoc-plugin-markdown/src/theme/context/partials/member.typeDeclarationTable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function typeDeclarationTable(
119119
}),
120120
);
121121
}
122-
if ((declaration.type as any).declaration?.signatures?.length) {
122+
if (declaration.type && (declaration.type as any).declaration?.signatures?.length) {
123123
(declaration.type as any).declaration?.signatures.forEach((sig) => {
124124
if (sig.comment) {
125125
commentsOut.push(

0 commit comments

Comments
 (0)