---
url: /api/@ufo-soft/caelus/core/functions/bind.md
---
# Function: bind()

> **bind**<`C`>(`commands`, `handlers`): [`Registration`](../interfaces/Registration.md)\[]

Defined in: [core.ts:50](https://github.com/ufo-soft/caelus/blob/31cc32fc3d2008e3b0d484d65d10bba2a91a5897/packages/caelus/src/core.ts#L50)

Registrations from shared descriptions and one handler per key. A described command without a
handler fails to compile; a handler written inline for an undescribed command does too.

## Type Parameters

### C

`C` *extends* `Readonly`<`Record`<`string`, [`Command`](../interfaces/Command.md)>>

## Parameters

### commands

`C`

### handlers

[`Handlers`](../type-aliases/Handlers.md)<`C`>

## Returns

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