Skip to content

Commit 02040b9

Browse files
author
Łukasz Średnicki
committed
fix(tuple): Repeat tupple type times
1 parent 729488e commit 02040b9

File tree

1 file changed

+1
-1
lines changed
  • packages/openapi-ts/src/plugins/@hey-api/typescript

1 file changed

+1
-1
lines changed

packages/openapi-ts/src/plugins/@hey-api/typescript/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ const tupleTypeToIdentifier = ({
687687
});
688688

689689
if (type) {
690-
itemTypes.push(type);
690+
itemTypes.push(...Array(schema.maxItems).fill(type));
691691
}
692692
}
693693
}

0 commit comments

Comments
 (0)