Skip to content

Commit 4c7befe

Browse files
committed
-
1 parent ca7bf6b commit 4c7befe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function handleMethodAndConstructor(
369369
} else {
370370
signature = [signatureObj];
371371
}
372-
if (signatureObj.param?.length === 0 && !signatureObj.type) {
372+
if (isConstructor && signatureObj.param?.length === 0) {
373373
// If there are no params and no return type, remove the signature
374374
signature = undefined;
375375
}

0 commit comments

Comments
 (0)