Skip to content

Commit 5f930f6

Browse files
committed
fixup!
1 parent 1c86082 commit 5f930f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/generators/jsx-ast/utils/buildSignature.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ export default ({ children }, { data }, idx) => {
9898
// Create a parsed signature object from the heading text and list
9999
const signature = parseSignature(data.text, params);
100100

101+
if (data.type === 'class' && !signature.extends) {
102+
// We don't need to add a signature block, since
103+
// this class has nothing to extend.
104+
return;
105+
}
106+
101107
// Determine the displayed name (e.g., handles cases like `new Foo`)
102108
const displayName = getFullName(data);
103109

0 commit comments

Comments
 (0)