Skip to content

Commit b18cd89

Browse files
authored
Merge pull request #851 from ilyabo/main
fix: Prevent crash in typeDeclarationTable
2 parents 103ca89 + 7c404da commit b18cd89

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)