Skip to content

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 ParameterDefault type
TContextRecord<string, unknown>
TEventPlayEvent

Deprecated

The next major version removes the guard utilities.