🚧 Still under progress. Soon will be finished.

TypeReferenceNode

CLASS code

Description

Represents a type reference. It’s basically a type that references another one. For example: type foo = HTMLElement

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): TypeReferenceNode

    Returns

    TypeReferenceNode:
  • getTSType

    code
    getTSType(): Type

    Returns

    Type:
  • getKind

    code
    getKind(): TypeKind

    Returns

    TypeKind:
  • getText

    code
    getText(): string

    Returns

    string:
  • getPath

    code
    getPath(): string

    Returns

    string:
  • getLine

    code
    getLine(): number | null

    Returns

    number | null:
  • getTypeArguments

    code
    getTypeArguments(): ReflectedTypeNode<TypeNode>[]

    Returns

    ReflectedTypeNode<TypeNode>[]:
  • serialize

    code

    Serializes the reflected type

    serialize(): Type

    Returns

    Type:

    The type as a serializable object