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.

Parameters

string $method
string $suffix

Return Value

string

at line 87
static string quoteIfNeeded(string $name)

Wrap an identifier in double quotes when it starts with a digit.

Parameters

string $name

Return Value

string

at line 103
static string cleanUp(string $view)

Normalise whitespace, indentation, and spacing in generated TypeScript.

Parameters

string $view

Return Value

string