🚧 Still under progress. Soon will be finished.

TypeQueryNode

CLASS code

Description

Represents a type query. For example: type foo = typeof Foo where Foo could be a class declaration.

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): TypeQueryNode

    Returns

    TypeQueryNode:
  • getTSType

    code
    getTSType(): Type

    Returns

    Type:
  • getKind

    code
    getKind(): TypeKind

    Returns

    TypeKind:
  • getPath

    code
    getPath(): string

    Returns

    string:
  • getLine

    code
    getLine(): number | null

    Returns

    number | null:
  • getText

    code
    getText(): string

    Returns

    string:
  • getTypeArguments

    code
    getTypeArguments(): ReflectedTypeNode<TypeNode>[]

    Returns

    ReflectedTypeNode<TypeNode>[]:
  • serialize

    code

    Serializes the reflected type

    serialize(): Type

    Returns

    Type:

    The type as a serializable object