Class TsGetter
- Namespace
- TypedRest.CodeGeneration.TypeScript.Model
- Assembly
- TypedRest.CodeGeneration.TypeScript.dll
A property getter of a TsClass.
public sealed class TsGetter
- Inheritance
-
objectTsGetter
Constructors
TsGetter(string, TsIdentifier, TsExpression)
A property getter of a TsClass.
public TsGetter(string name, TsIdentifier type, TsExpression body)
Parameters
namestringThe name of the getter.
typeTsIdentifierThe type returned by the getter.
bodyTsExpressionThe expression returned by the getter.
Properties
Body
The expression returned by the getter.
public TsExpression Body { get; }
Property Value
Deprecated
Marks the getter as deprecated.
public bool Deprecated { get; set; }
Property Value
Name
The name of the getter.
public string Name { get; }
Property Value
Summary
A description of the getter for a JSDoc comment.
public string? Summary { get; set; }
Property Value
Type
The type returned by the getter.
public TsIdentifier Type { get; }