TypeScript
To define TypeScript as the target language in a template file :
#set( $env.language = 'TypeScript' )
The information below shows the behavior of the generator when TypeScript is the current target language.
The table below describes how model neutral types are automatically converted to TypeScript types
Model type | TypeScript type | |
string | string | |
byte | number | |
short | number | |
int | number | |
long | number | |
decimal | number | |
float | number | |
double | number | |
boolean | boolean | |
date | Date | |
time | Date | |
timestamp | Date | |
binary | any | |
- @UnsignedType : no effect
- @ObjectType : no effect
- @NotNull : no effect
- @PrimitiveType : no effect
For more information about TypeScript see :
Last modified 1yr ago