Skip to content

Commit abe52d7

Browse files
committed
-
1 parent 8c2b39b commit abe52d7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/build/patches.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type DeepPartial<T> = T extends object
1919
: T;
2020

2121
interface Method extends Omit<originalMethod, "signature"> {
22-
signature: Signature[] | Record<string, Signature>;
22+
signature: DeepPartial<Signature>[] | Record<string, DeepPartial<Signature>>;
2323
}
2424

2525
function optionalMember<const T>(prop: string, type: T, value?: Value) {
@@ -288,9 +288,7 @@ function handleMethod(child: Node): DeepPartial<Method> {
288288
}),
289289
};
290290

291-
let signature:
292-
| Record<string, DeepPartial<Signature>>
293-
| DeepPartial<Signature>[];
291+
let signature: Method['signature'];
294292
const signatureIndex = child.properties?.signatureIndex;
295293
if (typeof signatureIndex == "number") {
296294
signature = { [signatureIndex]: signatureObj };

0 commit comments

Comments
 (0)