TypeScript Generator Attributes
Here’s the list of attributes that affect TypeScript code generation.
See also
Attribute |
Type |
Inheritance |
Target |
Description |
Default |
|---|---|---|---|---|---|
enabled |
bool |
scope |
module,
type
|
Enables code generation for
the module or type
|
|
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 |
scope |
record field |
Notation used for name
translation of record
field names.
|
|
|
setup_ctor |
bool |
scope |
record |
Generate setup constructor
|
|
parameter |
bool |
scope |
record field |
Declare field as the
constructor parameter
|
|
public |
bool |
scope |
record field |
Field is declared as public |
|
private |
bool |
scope |
record field |
Field is declared as private |
|
readonly |
bool |
scope |
record field |
Field is declared as readonly |
|
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 |
|