quicktype
quicktype copied to clipboard
Question: Typescript -> (kotlin/Swift) with Integer
How do generate an integer when Typescript is the source, given that it only supports number
which automatically becomes a Double
in the target languages?
I have a similar problem. I am converting typescript to swift.
i found use jsdoc
export interface Menu {
/**
* @type integer
*/
seq?: number;
name: string;
isFavorite: boolean;
isAlcohol: boolean;
price: number;
position?: MenuPosition;
}