🚧 Still under progress. Soon will be finished.

BindingElementNode

CLASS code

Description

Represents the reflected binding element node. A binding element appears in the named parameters of a signature.

Methods

  • getTSNode

    code

    The TypeScript AST node related to this reflected node

    getTSNode(): BindingElement

    Returns

    BindingElement:

    The original TypeScript node

  • getContext

    code

    The context includes useful APIs that are shared across all the reflected symbols. Some APIs include the parsed configuration options, the system interface, the type checker

    getContext(): ProjectContext

    Returns

    ProjectContext:

    The analyser context

  • getName

    code

    Reads the name of the binding element node

    getName(): string

    Returns

    string:

    The name of the binding element

  • getDefault

    code

    The default value of the binding element.

    getDefault(): unknown

    Returns

    unknown:

    The default value, otherwise it will return undefined

  • serialize

    code

    Serializes the reflected node

    serialize(): BindingElement

    Returns

    BindingElement:

    The reflected node as a serializable object