import { type InvokeConfig } from "https://deno.land/x/xstate@xstate%405.0.0-beta.13/src/types.ts";
Type Parameters
TContext extends MachineContext
TEvent extends EventObject
Properties
The unique identifier for the invoked machine. If not specified, this
will be the machine's own id
, or the URL (from src
).
src: string | ActorBehavior<any, any>
The source of the machine to be invoked, or the machine itself.
optional
onDone: string | SingleOrArray<TransitionConfigOrTarget<TContext, DoneInvokeEvent<any>, TEvent>>The transition to take upon the invoked child machine reaching its final top-level state.
optional
onError: string | SingleOrArray<TransitionConfigOrTarget<TContext, ErrorEvent<any>, TEvent>>The transition to take upon the invoked child machine sending an error event.
optional
onSnapshot: string | SingleOrArray<TransitionConfigOrTarget<TContext, SnapshotEvent<any>, TEvent>>