Table of Contents

Class TsGetter

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

A property getter of a TsClass.

public sealed class TsGetter
Inheritance
object
TsGetter

Constructors

TsGetter(string, TsIdentifier, TsExpression)

A property getter of a TsClass.

public TsGetter(string name, TsIdentifier type, TsExpression body)

Parameters

name string

The name of the getter.

type TsIdentifier

The type returned by the getter.

body TsExpression

The expression returned by the getter.

Properties

Body

The expression returned by the getter.

public TsExpression Body { get; }

Property Value

TsExpression

Deprecated

Marks the getter as deprecated.

public bool Deprecated { get; set; }

Property Value

bool

Name

The name of the getter.

public string Name { get; }

Property Value

string

Summary

A description of the getter for a JSDoc comment.

public string? Summary { get; set; }

Property Value

string

Type

The type returned by the getter.

public TsIdentifier Type { get; }

Property Value

TsIdentifier