TypeScript
class TypeScript
Constants
| RESERVED_KEYWORDS |
|
Methods
static string
safeMethod(string $method, string $suffix)
Convert a method name into a TypeScript-safe identifier.
static string
quoteIfNeeded(string $name)
Wrap an identifier in double quotes when it starts with a digit.
static string
cleanUp(string $view)
Normalise whitespace, indentation, and spacing in generated TypeScript.
Details
at line 63
static string
safeMethod(string $method, string $suffix)
Convert a method name into a TypeScript-safe identifier.
at line 87
static string
quoteIfNeeded(string $name)
Wrap an identifier in double quotes when it starts with a digit.
at line 103
static string
cleanUp(string $view)
Normalise whitespace, indentation, and spacing in generated TypeScript.