Skip to content
Version: xstate@5.0.0

StatesDefinition type​

Signature:

export type StatesDefinition<TContext extends MachineContext, TEvent extends EventObject> = {
[K in string]: StateNodeDefinition<TContext, TEvent>;
};

References: MachineContext, EventObject, StateNodeDefinition