Skip to content

Commit 25a4b77

Browse files
committed
Support multiple
1 parent b0e5c13 commit 25a4b77

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/build/patches.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,8 @@ function handleMixinAndInterfaces(
190190
break;
191191
}
192192
case "constructor": {
193-
if (constructor) {
194-
throw new Error(`Multiple constructors found in ${type} "${name}"`);
195-
}
196-
constructor = handleMethodAndConstructor(child, true);
193+
const c = handleMethodAndConstructor(child, true);
194+
constructor = merge(constructor, c);
197195
break;
198196
}
199197
case "typeParameters": {

0 commit comments

Comments
 (0)