-
-
Notifications
You must be signed in to change notification settings - Fork 547
Closed as not planned
Description
When generating types for a constant size array, I would like to have an option to convert it to a constant size array / tuple in typescript.
Example
MyModel: {
type: 'object',
properties: {
coordinates: {
type: 'array',
items: {
type: 'number',
},
minItems: 2,
maxItems: 2,
},
},
},Would convert to
export type MyModel = {
coordinates: Array<number>;
}currently, but I would like the option to convert it to
export type MyModel = {
coordinates: [number, number];
}jeremyjacob
Metadata
Metadata
Assignees
Labels
No labels