> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# AnyHookHandler

> Type alias exported by @botmesh/core.

```ts theme={null}
type AnyHookHandler = 
  | HookHandler<never>
| HookErrorHandler<never>;
```

Defined in: [core/types.ts:198](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L198)

Registry-side handler type: every [HookHandler](https://botmesh.afaya.com.co/api/core/type-aliases/HookHandler.md) and [HookErrorHandler](https://botmesh.afaya.com.co/api/core/type-aliases/HookErrorHandler.md) is
assignable to it (the parameter is `never`), so it can hold handlers of any event. It is
not callable without a cast; the hook pipeline does that internally.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.