Table of Contents

Class Ts

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

TypeScript syntax helpers.

public static class Ts
Inheritance
object
Ts

Methods

IsIdentifier(string)

Indicates whether name can be used as a TypeScript identifier without quoting.

public static bool IsIdentifier(string name)

Parameters

name string

Returns

bool

MemberName(string)

Returns name as an object/interface member name, quoting it if necessary.

public static string MemberName(string name)

Parameters

name string

Returns

string

Quote(string)

Returns value as a double-quoted TypeScript string literal.

public static string Quote(string value)

Parameters

value string

Returns

string