Viewer
Viewer = {
kind:"seat";playerId:string;seat:number;seats: readonlynumber[]; } | {kind:"spectator";playerId:null;seat:null;seats: readonlynumber[]; }
Defined in: core/define.ts:18
Who a view is being computed for (ADR 0003). All spectators share one viewer.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ kind: "seat"; playerId: string; seat: number; seats: readonly number[]; }
readonlykind:"seat"
playerId
Section titled “playerId”
readonlyplayerId:string
readonlyseat:number
The viewer's first (usually only) seat.
readonlyseats: readonlynumber[]
Every seat this player holds at the table.
Type Literal
Section titled “Type Literal”{ kind: "spectator"; playerId: null; seat: null; seats: readonly number[]; }
