Skip to content

Commit 1ecba5d

Browse files
committed
format
1 parent 87aa0bc commit 1ecba5d

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/build/patches.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,18 @@ function handleTyped(type: Node): Typed {
6363
};
6464
}
6565

66-
function handleAdditionalTypes(node:Node){
67-
const additionalTypes = []
68-
for (const child of node.children) {
69-
if (child.name === "additionalType") {
70-
additionalTypes.push(string(child.values[0]));
71-
}
72-
66+
function handleAdditionalTypes(node: Node) {
67+
const additionalTypes = [];
68+
for (const child of node.children) {
69+
if (child.name === "additionalType") {
70+
additionalTypes.push(string(child.values[0]));
71+
}
7372
}
74-
// Check if additionalTypes has elements and return array if so, otherwise undefined/empty.
75-
if (additionalTypes.length > 0) {
76-
return {additionalTypes};
77-
}
78-
return undefined;
73+
// Check if additionalTypes has elements and return array if so, otherwise undefined/empty.
74+
if (additionalTypes.length > 0) {
75+
return { additionalTypes };
76+
}
77+
return undefined;
7978
}
8079

8180
function handleTypeParameters(value: Value | Node) {
@@ -305,7 +304,7 @@ function handleMethod(child: Node): DeepPartial<OverridableMethod> {
305304
"string",
306305
c.properties?.overrideType,
307306
),
308-
...handleAdditionalTypes(c)
307+
...handleAdditionalTypes(c),
309308
});
310309
break;
311310

0 commit comments

Comments
 (0)