Stone.js API
    Preparing search index...

    Function isHandlerHasHook

    • Check if the provided handler has the specified hook.

      Type Parameters

      • HandlerType

      Parameters

      • handler: any

        The handler to check.

      • hookName: keyof HandlerType

        The hook name to check.

      Returns handler is HandlerType & Record<keyof HandlerType, (...args: any[]) => any>

      true if the handler has the specified hook, otherwise false.