Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface GroupedFunction<T>

Type parameters

  • T

Hierarchy

Callable

  • GroupedFunction(...args: any[]): Promise<any>

Index

Methods

  • add(...fns: Function[]): T
  • Adds one or more functions to the underlying Set and returns the original grouped function for chaining.

    Parameters

    • Rest ...fns: Function[]

      One or more functions to add to the underlying collection.

    Returns T

    The original grouped function instance.

  • clone(): T
  • Creates and returns a new copy of the grouped function. Methods can be added or removed from this function without modifying the original.

    Returns T

    A new copy of the original grouped function that can be modified without affecting the original.

  • insert(index: number, ...fns: Function[]): T
  • Adds one or more functions to the underlying Set, starting at the given index, and returns the original grouped function for chaining.

    Parameters

    • index: number

      The position at which to begin inserting functions.

    • Rest ...fns: Function[]

      One or more functions to insert into the underlying Set.

    Returns T

    The original grouped function instance.

  • remove(...fns: Function[]): T
  • Removes one or more functions from the underlying Set and returns the original grouped function for chaining.

    Parameters

    • Rest ...fns: Function[]

      One or more functions to remove from the underlying Set.

    Returns T

    The original grouped function instance.