Table of Contents

Namespace TypedRest.CodeGeneration.TypeScript.Model

Classes

Ts

TypeScript syntax helpers.

TsBarrelFile

A generated TypeScript file that re-exports everything from a set of other generated modules.

TsClass

A TypeScript class declaration.

TsConstructor

The constructor of a TsClass. Its body consists solely of a call to the base constructor.

TsExpression

A TypeScript expression.

TsFile

A generated TypeScript source file holding one or more type declarations.

TsGetter

A property getter of a TsClass.

TsIdentifier

A reference to a TypeScript type.

TsImport

A single name imported from a TsModule.

TsInterface

A TypeScript interface declaration, used for DTOs.

TsLiteral

A string literal.

TsModule

A TypeScript module that a type can be imported from.

TsName

References a variable or parameter by name.

TsNew

Creates an instance of a type, e.g. new ElementEndpoint<Contact>(this, "./contacts").

TsParameter

A parameter of a TsConstructor.

TsProperty

A property of a TsInterface.

TsThis

The this reference.

TsTypeAlias

A TypeScript type alias declaration, used for enums.

TsTypeRef

References a type as a value, e.g. to pass a class to a constructor expecting a factory.

TsWriter

Writes indented TypeScript code.

Interfaces

ITsType

A TypeScript type declaration that can be exported from a module.