🚧 Still under progress. Soon will be finished.

FunctionTypeNode

CLASS code

Description

Represents the reflected function type For example: () => void

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): FunctionTypeNode

    Returns

    FunctionTypeNode:
  • getTSType

    code
    getTSType(): Type

    Returns

    Type:
  • getKind

    code
    getKind(): TypeKind

    Returns

    TypeKind:
  • getText

    code
    getText(): string

    Returns

    string:
  • getTypeParameters

    code
    getTypeParameters(): TypeParameterNode[]

    Returns

    TypeParameterNode[]:
  • getParameters

    code
    getParameters(): ParameterNode[]

    Returns

    ParameterNode[]:
  • getReturnType

    code
    getReturnType(): ReflectedTypeNode<TypeNode>

    Returns

    ReflectedTypeNode<TypeNode>:
  • serialize

    code

    Serializes the reflected type

    serialize(): Type

    Returns

    Type:

    The type as a serializable object