🚧
Still under progress. Soon will be finished.
Description
Represents a union type.
For example: type foo = string | number
Methods
-
getContext
codegetContext(): ProjectContext
Returns
ProjectContext
: -
getTSNode
codegetTSNode(): UnionTypeNode
Returns
UnionTypeNode
: -
getTSType
codegetTSType(): Type
Returns
Type
: -
getKind
codegetKind(): TypeKind
Returns
TypeKind
: -
getText
codegetText(): string
Returns
string
: -
getElements
codegetElements(): ReflectedTypeNode<TypeNode>[]
Returns
ReflectedTypeNode<TypeNode>[]
: -
serialize
codeSerializes the reflected type
serialize(): Type
Returns
Type
:The type as a serializable object