TypeScript Generator Attributes

Here’s the list of attributes that affect TypeScript code generation.

Attribute

Type

Inheritance

Target

Description

Default

enabled

bool

scope

module,
type
Enables code generation for
the module or type

true

file

string

module
webservice

Override generated file name

name

string

module,
type,
record field
enum field
webservice
web resource
Override generated name

namespace

string

module

Override namespace that is
used when importing module

field_notation

Notation

scope

record field

Notation used for name
translation of record
field names.

lowerCamel

setup_ctor

bool

scope

record

Generate setup constructor

false

parameter

bool

scope

record field

Declare field as the
constructor parameter

false

public

bool

scope

record field

Field is declared as public

false

private

bool

scope

record field

Field is declared as private

false

readonly

bool

scope

record field

Field is declared as readonly

false

alias

string

type

Provides the alias type name.
Type declaration won’t be
generated and alias type is
used instead.

json.serializer

string

type

Provides the user-provided JSON
serializer name. Serializer
won’t be generated.

error_message

bool

exception field

This field contains error
message.

false