import { type ActorBehavior } from "https://deno.land/x/xstate@xstate%405.0.0-beta.13/src/types.ts";
Type Parameters
TEvent extends EventObject
optional
TPersisted = TInternalStateoptional
TSystem extends ActorSystem<any> = ActorSystem<any>Properties
transition: () => TInternalState
state: TInternalState,
message: TEvent | LifecycleSignal,
ctx: ActorContext<TEvent, TSnapshot, TSystem>,
getInitialState: (actorCtx: ActorContext<TEvent, TSnapshot, any>, input: any) => TInternalState
optional
restoreState: (persistedState: TPersisted, actorCtx: ActorContext<TEvent, TSnapshot>) => TInternalStateoptional
getSnapshot: (state: TInternalState) => TSnapshotoptional
getStatus: (state: TInternalState) => { status: string; data?: any; }optional
start: (state: TInternalState, actorCtx: ActorContext<TEvent, TSnapshot>) => voidoptional
getPersistedState: (state: TInternalState) => TPersisted