🚧 Still under progress. Soon will be finished.

TypeAliasNode

CLASS code

Description

Represents the reflected node of a type alias declaration

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): TypeAliasDeclaration

    Returns

    TypeAliasDeclaration:
  • getNodeType

    code
    getNodeType(): RootNodeType

    Returns

    RootNodeType:
  • getKind

    code
    getKind(): DeclarationKind.TypeAlias

    Returns

    DeclarationKind.TypeAlias:
  • getName

    code
    getName(): string

    Returns

    string:
  • getLine

    code
    getLine(): number

    Returns

    number:
  • getNamespace

    code
    getNamespace(): string

    Returns

    string:
  • getJSDoc

    code
    getJSDoc(): CommentNode

    Returns

    CommentNode:
  • getValue

    code
    getValue(): ReflectedTypeNode<TypeNode>

    Returns

    ReflectedTypeNode<TypeNode>:
  • getTypeParameters

    code
    getTypeParameters(): TypeParameterNode[]

    Returns

    TypeParameterNode[]:
  • serialize

    code

    Serializes the reflected node

    serialize(): TypeAliasDeclaration

    Returns

    TypeAliasDeclaration:

    The reflected node as a serializable object