Skip to content

Viewer

Viewer = { kind: "seat"; playerId: string; seat: number; seats: readonly number[]; } | { kind: "spectator"; playerId: null; seat: null; seats: readonly number[]; }

Defined in: core/define.ts:18

Who a view is being computed for (ADR 0003). All spectators share one viewer.

{ kind: "seat"; playerId: string; seat: number; seats: readonly number[]; }

readonly kind: "seat"

readonly playerId: string

readonly seat: number

The viewer's first (usually only) seat.

readonly seats: readonly number[]

Every seat this player holds at the table.


{ kind: "spectator"; playerId: null; seat: null; seats: readonly number[]; }