Skip to content

Class: TypeAlias ​

Represents a type alias definition, giving a new name to an existing type.

Example ​

ts
type String = [Char]

Constructors ​

Constructor ​

new TypeAlias(identifier, variables, value, loc?): TypeAlias

Parameters ​

ParameterType
identifierSymbolPrimitive
variablesstring[]
valueType
loc?SourceLocation

Returns ​

TypeAlias

Overrides ​

ASTNode.constructor