🚧 Still under progress. Soon will be finished.

LiteralTypeNode

CLASS code

Description

Represents a literal type. For example: type foo = 4

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): LiteralTypeNode

    Returns

    LiteralTypeNode:
  • getTSType

    code
    getTSType(): Type

    Returns

    Type:
  • getKind

    code
    getKind(): TypeKind

    Returns

    TypeKind:
  • getText

    code
    getText(): string

    Returns

    string:
  • serialize

    code

    Serializes the reflected type

    serialize(): Type

    Returns

    Type:

    The type as a serializable object