Class TsClass
- Namespace
- TypedRest.CodeGeneration.TypeScript.Model
- Assembly
- TypedRest.CodeGeneration.TypeScript.dll
A TypeScript class declaration.
public sealed class TsClass : ITsType
- Inheritance
-
objectTsClass
- Implements
Constructors
TsClass(TsIdentifier)
A TypeScript class declaration.
public TsClass(TsIdentifier identifier)
Parameters
identifierTsIdentifierThe name of the class and the module it is declared in.
Properties
BaseType
The type this class derives from.
public TsIdentifier? BaseType { get; set; }
Property Value
Constructor
The constructor of the class. Leave this null to inherit the base constructor.
public TsConstructor? Constructor { get; set; }
Property Value
Deprecated
Marks the type as deprecated.
public bool Deprecated { get; set; }
Property Value
Getters
The child endpoints exposed by the class.
public List<TsGetter> Getters { get; }
Property Value
Identifier
The name of the type and the module it is declared in.
public TsIdentifier Identifier { get; }
Property Value
Summary
A description of the type for a JSDoc comment.
public string? Summary { get; set; }
Property Value
Methods
GetImports()
Returns all imports needed by the declaration of the type.
public IEnumerable<TsImport> GetImports()
Returns
Write(TsWriter)
Writes the declaration of the type.
public void Write(TsWriter writer)
Parameters
writerTsWriter