Skip to content
Version: xstate@5.0.0

MachineConfig type​

Signature:

export type MachineConfig<TContext extends MachineContext, TEvent extends EventObject, TActor extends ProvidedActor = ProvidedActor, TAction extends ParameterizedObject = ParameterizedObject, TGuard extends ParameterizedObject = ParameterizedObject, TDelay extends string = string, TTag extends string = string, TInput = any, TOutput = unknown, TTypesMeta = TypegenDisabled> = (Omit<StateNodeConfig<NoInfer<TContext>, NoInfer<TEvent>, NoInfer<TActor>, NoInfer<TAction>, NoInfer<TGuard>, NoInfer<TDelay>, NoInfer<TTag>, NoInfer<TOutput>>, 'output'> & {
version?: string;
types?: MachineTypes<TContext, TEvent, TActor, TAction, TGuard, TDelay, TTag, TInput, TOutput, TTypesMeta>;
output?: Mapper<TContext, DoneStateEvent, TOutput, TEvent> | TOutput;
}) & (MachineContext extends TContext ? {
context?: InitialContext<LowInfer<TContext>, TActor, TInput>;
} : {
context: InitialContext<LowInfer<TContext>, TActor, TInput>;
});

References: MachineContext, EventObject, ProvidedActor, ParameterizedObject, TypegenDisabled, StateNodeConfig, NoInfer, MachineTypes, Mapper, DoneStateEvent, LowInfer