Skip to content

Commit a88fbed

Browse files
committed
-
1 parent d7e96fb commit a88fbed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/build/patches.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,13 @@ function handleMethod(child: Node): Partial<Method> {
140140
const name = child.values[0] as string;
141141
// Build the overrideSignatures array with the method signature string
142142
const signature = [
143-
`${name}(${child.children.map((c) => `${c.values[0]}: ${c.properties.type}`).join(", ")}): ${child.properties.returns || "void"}`,
143+
{
144+
type: child.properties.returns as string,
145+
parameters: child.children.map((c) => ({
146+
name: c.values[0] as string,
147+
type: c.properties.type as string,
148+
})),
149+
},
144150
];
145151
return { name, signature };
146152
}

0 commit comments

Comments
 (0)