Type alias HookFn<T>

HookFn<T>: ((...args) => Promise<undefined | number>)

Type Parameters

  • T extends hookName

Type declaration

    • (...args): Promise<undefined | number>
    • An alias which generates a function type from its signatures based on hook name.

      Parameters

      Returns Promise<undefined | number>