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

# validateConfig()

> Function exported by @botmesh/core.

```ts theme={null}
function validateConfig<T>(config): T;
```

Defined in: [utils/validateConfig.ts:107](https://github.com/andresayac/botmesh/blob/main/packages/core/src/utils/validateConfig.ts#L107)

Validate a BotConfig object at construction time. Throws
[ConfigValidationError](https://botmesh.afaya.com.co/api/core/classes/ConfigValidationError.md) with a clear message on invalid input.

## Type Parameters

| Type Parameter |
| - |
|  `T` *extends* `Partial`\<[`BotConfig`](https://botmesh.afaya.com.co/api/core/interfaces/BotConfig)> |

## Parameters

| Parameter | Type |
| - | - |
| `config` | `T` |

## Returns

`T`


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