# vesselOnlyShows
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/functions/vesselonlyshows/
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.

> **vesselOnlyShows**(`vessel`): `boolean`

Defined in: [packages/protocol/src/lib/vessel-only-shows.ts:16](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/vessel-only-shows.ts#L16)

Tells whether a Vessel can only change what is shown, never app data.

True when no Variant offers an Action, or when every Action in every Variant declares `effect: 'none'`. An `idempotent` or `any` Action counts as able to change data, and so does an Action that omitted `effect`, because the schema parses an omitted effect as `any`.

## Parameters

### vessel

#### defaultVariant

[`VariantName`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/variantname/) = `...`

#### description

`string` = `...`

#### id

[`VesselId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/vesselid/) = `...`

#### name

`string` = `...`

#### variants

`Record`<[`VariantName`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/variantname/), { `actions`: `object`\[\]; `description?`: `string`; `minSize`: { `height`: `number`; `width`: `number`; }; `props`: `Record`<`string`, `unknown`\>; }> = `...`

## Returns

`boolean`

## Example

```ts
const marker = vesselOnlyShows(vessel) ? 'Shows only.' : 'Can also change data.';
```
