Skip to content

Commit 56caab1

Browse files
committed
fix crash on name-only type table
1 parent e21c1f1 commit 56caab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const parseListIntoProperties = (node, prefix = '') => {
4242
name = 'Returns';
4343
}
4444

45-
if (children[0].value?.trim() === '') {
45+
if (children[0]?.value?.trim() === '') {
4646
// Remove any leading space
4747
children.shift();
4848
}

0 commit comments

Comments
 (0)