Interface CallChain

A call chain.

This is passed to NextCall to perform the call.

Hierarchy

  • CallChain

Methods

Methods

  • Calls a pass in this chain with the given arguments.

    When this is called for the last pass, the final result would be an args tuple.

    Type Parameters

    • TArgs extends any[]

      Pass arguments tuple type.

    Parameters

    • pass: ((this, ...args) => any)

      A pass to call.

        • (this, ...args): any
        • Parameters

          • this: void
          • Rest ...args: TArgs

          Returns any

    • args: TArgs

      An array of arguments for the call.

    Returns void

  • Calls a pass in this chain with the given argument.

    When this is called for the last pass, the final result would be arg.

    Type Parameters

    • TArg

    Parameters

    • pass: ((this, arg) => any)

      A pass to call.

        • (this, arg): any
        • Parameters

          • this: void
          • arg: TArg

          Returns any

    • arg: TArg

      Single argument for the call.

    Returns void

  • Skips the rest of the passes.

    Parameters

    • Optional result: unknown

      Call chain result.

    Returns void

Generated using TypeDoc