Type Alias: GuardArray<TContext, TEvent>
API / @xmachines/play-xstate / GuardArray
type GuardArray<TContext, TEvent> = (Guard<TContext, TEvent> | string)[];Defined in: packages/play-xstate/src/guards/types.ts:23
The array of the guard predicates, or of the guard names. An array means AND: every guard must pass.
Type Parameters
| Type Parameter | Default type |
|---|---|
TContext | Record<string, unknown> |
TEvent | PlayEvent |
Deprecated
The next major version removes the guard utilities.