🚧 Still under progress. Soon will be finished.

ReflectedTypeNode

INTERFACE code

Description

Base specification of what a reflected type should have.

Methods

  • getText

    code

    The type representation as text

    getText(): string

    Returns

    string:
  • getTSType

    code

    The original type generated by the TypeScript compiler

    getTSType(): Type

    Returns

    Type:
  • getKind

    code

    The kind of type (intersection, union, conditional, literal, etc…)

    getKind(): TypeKind

    Returns

    TypeKind:
  • getTSNode

    code

    The original node generated by the TypeScript compiler

    getTSNode(): T | null

    Returns

    T | null:
  • getContext

    code

    Returns the context in which the AST node was created. The context contains useful utilities like the TS type checker.

    getContext(): ProjectContext

    Returns

    ProjectContext:
  • serialize

    code

    Returns a simple readonly JavaScript object without methods or internal state.

    serialize(): Type

    Returns

    Type: