Skip to content

ActionArgs

Defined in: core/define.ts:146

S

I

O

PN extends string

R = Json

ctx: ActionCtx<O, PN, R>

Defined in: core/define.ts:158


input: I

Defined in: core/define.ts:157

The validated input (the schema's output). undefined without a schema.


player: string | null

Defined in: core/define.ts:155

The acting player's id, or null for internal actions.


seat: number

Defined in: core/define.ts:153

The acting seat. For internal actions run by a timer, this is -1; read any seat you need from input.


state: S

Defined in: core/define.ts:148

A draft of the state: mutate it freely (ADR 0005).