Skip to content

Commit ebab56a

Browse files
authored
Update patches.ts
1 parent 891f8dd commit ebab56a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/build/patches.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ function handleMethod(child: Node): Partial<Method> {
238238
const name = string(child.values[0]);
239239

240240
const typeNode = findTypeNode(child.children, `Property "${name}"`);
241-
if (!typeNode) throw new Error(`Method "${name}" is missing a return type`);
242241
const params: { name: string; type: string }[] = [];
243242

244243
for (const c of child.children) {

0 commit comments

Comments
 (0)