Skip to content

Commit 200000e

Browse files
committed
chore: run lint fix
1 parent f4308d9 commit 200000e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/openapi-typescript/src/transform/schema-object.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ function transformSchemaObjectCore(schemaObject: SchemaObject, options: Transfor
336336
elements.push(itemType);
337337
}
338338
return tsUnion([ts.factory.createTupleTypeNode(elements)]);
339-
}
340-
else if ((schemaObject.maxItems as number) > 0) { // if maxItems is set, then return a union of all permutations of possible tuple types
339+
} else if ((schemaObject.maxItems as number) > 0) {
340+
// if maxItems is set, then return a union of all permutations of possible tuple types
341341
const members: ts.TypeNode[] = [];
342342
// populate 1 short of min …
343343
for (let i = 0; i <= (max ?? 0) - min; i++) {

packages/openapi-typescript/test/transform/schema-object/array.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe("transformSchemaObject > array", () => {
158158
...DEFAULT_OPTIONS,
159159
ctx: { ...DEFAULT_OPTIONS.ctx, arrayLength: true },
160160
},
161-
}
161+
},
162162
],
163163
[
164164
"options > immutable: true",

0 commit comments

Comments
 (0)