Skip to content

vesselOnlyShows

vesselOnlyShows(vessel): boolean

Defined in: packages/protocol/src/lib/vessel-only-shows.ts:16

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.

VariantName = ...

string = ...

VesselId = ...

string = ...

Record<VariantName, { actions: object[]; description?: string; minSize: { height: number; width: number; }; props: Record<string, unknown>; }> = ...

boolean

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