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

# Plugin<TConfig>

> Type alias exported by @botmesh/core.

```ts theme={null}
type Plugin<TConfig> = 
  | PluginSpec<TConfig>
  | ((config?) => PluginSpec<TConfig>);
```

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

A plugin is just a PluginSpec or a factory returning one.

## Type Parameters

| Type Parameter | Default type |
| - | - |
|  `TConfig` | `Record`\<`string`, `unknown`> |


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