"TypeScript" language specificities

Telosys version : 4.1.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.



Type conversion ( model type to language type )

The language type conversion has an impact on :
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

Remarks

All annotations have no effect for TypeScript



Literals for TRUE, FALSE and NULL

TRUE true
FALSE false
NULL null


Literal values

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