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 d7e96fb commit a88fbedCopy full SHA for a88fbed
src/build/patches.ts
@@ -140,7 +140,13 @@ function handleMethod(child: Node): Partial<Method> {
140
const name = child.values[0] as string;
141
// Build the overrideSignatures array with the method signature string
142
const signature = [
143
- `${name}(${child.children.map((c) => `${c.values[0]}: ${c.properties.type}`).join(", ")}): ${child.properties.returns || "void"}`,
+ {
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
+ },
150
];
151
return { name, signature };
152
}
0 commit comments