Skip to main content

useCustomFunction

Callable

  • useCustomFunction<A, T>(key: string): (...args: A) => Promise<T>

  • Returns the customFunction


    Type parameters

    • A: any[]
    • T

    Parameters

    • key: string

      functionName

    Returns (...args: A) => Promise<T>

      • (...args: A): Promise<T>
      • Parameters

        • rest...args: A

        Returns Promise<T>