Telosys doc
WebsiteTwitterLinkedInNews
  • Telosys documentation
  • Telosys CLI
    • Installation on Linux
    • Installation on Windows
    • CLI configuration
    • CLI commands
    • Getting started
  • Telosys with VSCode
    • Extension installation
    • VSCode settings
    • Telosys terminal in VSCode
    • Telosys editor configuration
  • Telosys with JetBrains IDE
  • Project configuration
  • Project variables
  • Project databases
  • Models and entities
    • Model structure
    • Entity
    • Attribute / Link
    • Annotations
    • Tags
    • Examples
    • Model creation
    • Model installation
    • Models management
  • Bundles of templates
    • Bundle structure
    • Bundle creation
    • Bundles installation
    • Bundles management
    • Velocity language
    • Velocity directives
    • Velocity object types
    • Telosys directives
    • Telosys variables
    • Telosys objects
    • Code snippets
  • Code generation
    • "gen" command
    • "genb" command
  • Target languages
    • C++
    • C#
    • Golang
    • Java
    • JavaScript
    • Kotlin
    • PHP
    • Python
    • Scala
    • TypeScript
  • Target databases (SQL)
    • Predefined rules
    • Specific rules
    • Type size and precision
  • Telosys with Git
    • GitHub usage
    • Install with Git
    • Publish with Git
  • Support the project
  • How to contribute
  • Sponsors
  • IDE and editors
  • Telosys 3 Eclipse plugin
    • Eclipse plugin installation
    • Eclipse customization
    • Telosys 3 database model
Powered by GitBook
On this page
  • Types conversion
  • Annotations effects
  • See also
  1. Target languages

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 :

PreviousScalaNextTarget databases (SQL)

Last updated 1 year ago

https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#object-types