Type Alias Guard<Context, K>

Guard: { [P in K]: GuardEvaluation<Context> }

This is the type for the guard of a state.

guard is an object that maps a key to a guard evaluation. K is all the possible keys that can be used to evaluate the guard. K is optional but if it is not provided, typescript won't be able to type guard in the EventGuards type.

Type Parameters