Interface State<EventPayloadMapping, Context, States>
interface State<EventPayloadMapping, Context, States extends string = "IDLE"> { eventGuards: Partial< EventGuards< EventPayloadMapping, States, Context, Guard<Context, string>, >, >; eventReactions: Partial<EventAction<EventPayloadMapping, Context, States>>; guards: Guard<Context>; handles<K extends string | number | symbol>( stateMachine: StateMachine<EventPayloadMapping, Context, States>, event: K, payload: EventPayloadMapping[K], context: Context, ): States; uponEnter( stateMachine: StateMachine<EventPayloadMapping, Context, States>, context: Context, ): void; uponLeave( stateMachine: StateMachine<EventPayloadMapping, Context, States>, context: Context, ): void;} Type Parameters
- EventPayloadMapping
- Context
- States extends string = "IDLE"
Properties
Methods
handles
Type Parameters
- K extends string | number | symbol