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 ca7bf6b commit 4c7befeCopy full SHA for 4c7befe
src/build/patches.ts
@@ -369,7 +369,7 @@ function handleMethodAndConstructor(
369
} else {
370
signature = [signatureObj];
371
}
372
- if (signatureObj.param?.length === 0 && !signatureObj.type) {
+ if (isConstructor && signatureObj.param?.length === 0) {
373
// If there are no params and no return type, remove the signature
374
signature = undefined;
375
0 commit comments