Skip to content

Commit 6eb4e77

Browse files
committed
-
1 parent 87954ce commit 6eb4e77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/build/patches.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function handleSingleTypeNode(type: Node): DeepPartial<Typed> {
6464

6565
function handleTyped(
6666
typeNodes: Node[],
67-
returns?: Value,
67+
property?: Value,
6868
): DeepPartial<Typed> | undefined {
6969
// Support multiple types, merged into array. If only one, keep as object.
7070
let type: DeepPartial<Typed> | undefined;
@@ -73,9 +73,9 @@ function handleTyped(
7373
} else if (typeNodes.length > 1) {
7474
const types = typeNodes.map(handleSingleTypeNode);
7575
type = { type: types };
76-
} else if (returns) {
76+
} else if (property) {
7777
type = {
78-
type: string(returns),
78+
type: string(property),
7979
subtype: undefined,
8080
};
8181
} else {

0 commit comments

Comments
 (0)