Telosys version : 3.3.0
To define TypeScript as the target language call #set( $env.language = 'TypeScript' ) in the templates files.
The information below shows the behavior of the generator when 'TypeScript' is the current target language.
Model type | Default | @UnsignedType | @NotNull | @PrimitiveType | @ObjectType |
---|---|---|---|---|---|
string | string | string | string | string | string |
byte | number | number | number | number | number |
short | number | number | number | number | number |
int | number | number | number | number | number |
long | number | number | number | number | number |
decimal | number | number | number | number | number |
float | number | number | number | number | number |
double | number | number | number | number | number |
boolean | boolean | boolean | boolean | boolean | boolean |
date | Date | Date | Date | Date | Date |
time | Date | Date | Date | Date | Date |
timestamp | Date | Date | Date | Date | Date |
binary | any | any | any | any | any |
All annotations have no effect for TypeScript
TRUE | true |
FALSE | false |
NULL | null |
Model type | Language type | Language full type | Language literal value example |
---|---|---|---|
string | string | string | "AAA" |
byte | number | number | 1 |
short | number | number | 1 |
int | number | number | 100 |
long | number | number | 1000 |
decimal | number | number | 10000.77 |
float | number | number | 1000.5 |
double | number | number | 1000.66 |
boolean | boolean | boolean | true |
date | Date | Date | null |
time | Date | Date | null |
timestamp | Date | Date | null |
binary | any | any | null |