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 87954ce commit 6eb4e77Copy full SHA for 6eb4e77
src/build/patches.ts
@@ -64,7 +64,7 @@ function handleSingleTypeNode(type: Node): DeepPartial<Typed> {
64
65
function handleTyped(
66
typeNodes: Node[],
67
- returns?: Value,
+ property?: Value,
68
): DeepPartial<Typed> | undefined {
69
// Support multiple types, merged into array. If only one, keep as object.
70
let type: DeepPartial<Typed> | undefined;
@@ -73,9 +73,9 @@ function handleTyped(
73
} else if (typeNodes.length > 1) {
74
const types = typeNodes.map(handleSingleTypeNode);
75
type = { type: types };
76
- } else if (returns) {
+ } else if (property) {
77
type = {
78
- type: string(returns),
+ type: string(property),
79
subtype: undefined,
80
};
81
} else {
0 commit comments