🚧 Still under progress. Soon will be finished.

SignatureNode

CLASS code

Description

Represents the reflected node of a signature declaration

Methods

  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getTSNode

    code
    getTSNode(): Signature

    Returns

    Signature:
  • getLine

    code
    getLine(): number

    Returns

    number:
  • getPath

    code
    getPath(): string

    Returns

    string:
  • getJSDoc

    code
    getJSDoc(): CommentNode

    Returns

    CommentNode:
  • getReturnType

    code
    getReturnType(): ReflectedNode<Type, Node>

    Returns

    ReflectedNode<Type, Node>:
  • getTypeParameters

    code
    getTypeParameters(): TypeParameterNode[]

    Returns

    TypeParameterNode[]:
  • getParameters

    code
    getParameters(): ParameterNode[]

    Returns

    ParameterNode[]:
  • getParameterByName

    code
    getParameterByName(name: string): ParameterNode | null

    Parameters

    name string

    Returns

    ParameterNode | null:
  • serialize

    code

    Serializes the reflected node

    serialize(): FunctionSignature

    Returns

    FunctionSignature:

    The reflected node as a serializable object