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.

Types conversion

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

Annotations effects

  • @UnsignedType : no effect

  • @ObjectType : no effect

  • @NotNull : no effect

  • @PrimitiveType : no effect

See also

For more information about TypeScript see :