🚧 Still under progress. Soon will be finished.

ParameterNode

CLASS code

Description

Represents the reflected node of a parameter declaration

Methods

  • getName

    code
    getName(): string

    Returns

    string:
  • getTSNode

    code
    getTSNode(): ParameterDeclaration

    Returns

    ParameterDeclaration:
  • getContext

    code
    getContext(): ProjectContext

    Returns

    ProjectContext:
  • getLine

    code
    getLine(): number

    Returns

    number:
  • getType

    code
    getType(): ReflectedNode<Type, Node>

    Returns

    ReflectedNode<Type, Node>:
  • getDefault

    code
    getDefault(): unknown

    Returns

    unknown:
  • getDecorators

    code
    getDecorators(): DecoratorNode[]

    Returns

    DecoratorNode[]:
  • getNamedElements

    code
    getNamedElements(): BindingElementNode[]

    Returns

    BindingElementNode[]:
  • getJSDoc

    code
    getJSDoc(): CommentNode

    Returns

    CommentNode:
  • isNamed

    code
    isNamed(): boolean

    Returns

    boolean:
  • isRest

    code
    isRest(): boolean

    Returns

    boolean:
  • isOptional

    code
    isOptional(): boolean

    Returns

    boolean:
  • serialize

    code

    Serializes the reflected node

    serialize(): Parameter

    Returns

    Parameter:

    The reflected node as a serializable object