Skip to content

Commit ae01428

Browse files
committed
-
1 parent 4c7befe commit ae01428

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/build/patches.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,9 @@ function handleMethodAndConstructor(
366366
};
367367
if (typeof signatureIndex == "number") {
368368
signature = { [signatureIndex]: signatureObj };
369-
} else {
369+
} else if (!isConstructor) {
370370
signature = [signatureObj];
371371
}
372-
if (isConstructor && signatureObj.param?.length === 0) {
373-
// If there are no params and no return type, remove the signature
374-
signature = undefined;
375-
}
376372
}
377373
return {
378374
name,

0 commit comments

Comments
 (0)