Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/xstate/src/types.ts>ActorBehavior

State machines and statecharts for the modern web.
Go to Latest
interface ActorBehavior
import { type ActorBehavior } from "https://deno.land/x/xstate@xstate%405.0.0-beta.13/src/types.ts";

Type Parameters

TEvent extends EventObject
optional
TSnapshot = any
optional
TInternalState = any
optional
TPersisted = TInternalState
optional
TSystem extends ActorSystem<any> = ActorSystem<any>

Properties

optional
config: unknown
getInitialState: (actorCtx: ActorContext<TEvent, TSnapshot, any>, input: any) => TInternalState
optional
restoreState: (persistedState: TPersisted, actorCtx: ActorContext<TEvent, TSnapshot>) => TInternalState
optional
getSnapshot: (state: TInternalState) => TSnapshot
optional
getStatus: (state: TInternalState) => { status: string; data?: any; }
optional
start: (state: TInternalState, actorCtx: ActorContext<TEvent, TSnapshot>) => void
optional
getPersistedState: (state: TInternalState) => TPersisted