We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea95b66 commit 4b87c4dCopy full SHA for 4b87c4d
src/generators/legacy-json/utils/parseList.mjs
@@ -94,13 +94,10 @@ export function parseList(section, nodes) {
94
95
// Update the section based on its type and parsed values
96
switch (section.type) {
97
- case 'ctor': {
98
- const signature = parseSignature(section.textRaw, values);
99
-
100
- Object.keys(signature).forEach(key => (section[key] ??= signature[key]));
101
+ case 'ctor':
+ // Constructors are their own signatures
+ Object.assign(section, parseSignature(section.textRaw, values));
102
break;
103
- }
104
105
case 'classMethod':
106
case 'method':
0 commit comments