Table of Contents

Interface ITsType

Namespace
TypedRest.CodeGeneration.TypeScript.Model
Assembly
TypedRest.CodeGeneration.TypeScript.dll

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

public interface ITsType

Properties

Deprecated

Marks the type as deprecated.

bool Deprecated { get; set; }

Property Value

bool

Identifier

The name of the type and the module it is declared in.

TsIdentifier Identifier { get; }

Property Value

TsIdentifier

Summary

A description of the type for a JSDoc comment.

string? Summary { get; set; }

Property Value

string

Methods

GetImports()

Returns all imports needed by the declaration of the type.

IEnumerable<TsImport> GetImports()

Returns

IEnumerable<TsImport>

Write(TsWriter)

Writes the declaration of the type.

void Write(TsWriter writer)

Parameters

writer TsWriter