---
url: https://relizy.dev/typedoc/type-aliases/HookConfig.md
---
[relizy](../index.md) / HookConfig

# Type Alias: HookConfig

> **HookConfig** = { \[K in \`${HookType}:${HookStep}\`]?: string | ((config: ResolvedRelizyConfig, dryRun: boolean, context?: HookContext) => any) } & `object`

Defined in: [packages/relizy/src/types.ts:2040](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L2040)

Hooks configuration
Useful to run custom scripts before, after a step or on error

## Type Declaration

### generate:changelog?

> `optional` **generate:changelog?**: (`config`, `dryRun`, `params`) => `string` | `void` | `null` | `undefined` | `Promise`<`string` | `void` | `null` | `undefined`>

#### Parameters

##### config

[`ResolvedRelizyConfig`](ResolvedRelizyConfig.md)

##### dryRun

`boolean`

##### params

###### changelog

`string`

###### commits

[`GitCommit`](../interfaces/GitCommit.md)\[]

#### Returns

`string` | `void` | `null` | `undefined` | `Promise`<`string` | `void` | `null` | `undefined`>
