# defineVessel
Source: https://docs.maelstrom-ai.co/0.2/reference/react/functions/definevessel/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

> **defineVessel**<`V`\>(`vessel`): `V`

Defined in: packages/protocol/dist/lib/vessel.d.ts:204

Helper to define a vessel while preserving literal types.

Constrains to VesselDefinition (the unbranded author-facing shape) rather than Vessel so raw string IDs / variant keys / action names are accepted at definition time. Brands are applied later via `VesselSchema.parse(...)` at validation seams.

Returns the input shape verbatim (`V`, not widened to `VesselDefinition`) so downstream type-level helpers can extract literal action-name unions for typed action runners.

## Type Parameters

### V

`V` _extends_ `VesselDefinition`

## Parameters

### vessel

`V`

## Returns

`V`
