> ## 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.

# HookContextOf<E, TCtx>

> Type alias exported by @botmesh/core.

```ts theme={null}
type HookContextOf<E, TCtx> = E extends keyof HookContextMap ? HookContextMap[E] : TCtx;
```

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

The context a hook on `E` receives: the [HookContextMap](https://botmesh.afaya.com.co/api/core/interfaces/HookContextMap.md) entry, else `TCtx` (default `unknown`).

## Type Parameters

| Type Parameter | Default type |
| - | - |
|  `E` *extends* [`HookEvent`](https://botmesh.afaya.com.co/api/core/type-aliases/HookEvent) | - |
|  `TCtx` | `unknown` |


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