@ue-too/being / GuardMapping
Type Alias: GuardMapping<Context, G, States>
GuardMapping<
Context,G,States> =object
Defined in: interface.ts:456
Description
This is a mapping of a guard to a target state.
Generic parameters:
- Context: The context of the state machine. (which can be used by each state to do calculations that would persist across states)
- G: The guard type.
- States: All of the possible states that the state machine can be in. e.g. a string literal union like "IDLE" | "SELECTING" | "PAN" | "ZOOM"
You probably don't need to use this type directly.
See
Type Parameters
Context
Context extends BaseContext
G
G
States
States extends string
Properties
guard
guard:
GextendsGuard<Context, infer K> ?K:never
Defined in: interface.ts:461
target
target:
States
Defined in: interface.ts:462