Class Ts
- Namespace
- TypedRest.CodeGeneration.TypeScript.Model
- Assembly
- TypedRest.CodeGeneration.TypeScript.dll
TypeScript syntax helpers.
public static class Ts
- Inheritance
-
objectTs
Methods
IsIdentifier(string)
Indicates whether name can be used as a TypeScript identifier without quoting.
public static bool IsIdentifier(string name)
Parameters
namestring
Returns
MemberName(string)
Returns name as an object/interface member name, quoting it if necessary.
public static string MemberName(string name)
Parameters
namestring
Returns
Quote(string)
Returns value as a double-quoted TypeScript string literal.
public static string Quote(string value)
Parameters
valuestring