Gaunt Sloth Assistant
    Preparing search index...

    Function executeHooks

    • Utility function to execute hook(s) - either a single hook or an array of hooks Fully type-safe and works with any number of arguments

      Type Parameters

      • T extends (...args: any[]) => Promise<void>

      Parameters

      • hooks: undefined | T | T[]

        Single hook function or array of hook functions (or undefined)

      • ...args: Parameters<T>

        Arguments to pass to each hook function

      Returns Promise<void>