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

x/xstate/src/types.ts>InterpreterOptions

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

Type Parameters

_TActorLogic extends AnyActorLogic

Properties

optional
execute: boolean

Whether state actions should be executed immediately upon transition. Defaults to true.

optional
clock: Clock
optional
logger: (...args: any[]) => void
optional
parent: ActorRef<any>
optional
deferEvents: boolean

If true, defers processing of sent events until the service is initialized (.start()). Otherwise, an error will be thrown for events sent to an uninitialized service.

Default: true

optional
id: string

The custom id for referencing this service.

optional
devTools: boolean | DevToolsAdapter

If true, states and events will be logged to Redux DevTools.

Default: false

optional
sync: boolean
optional
systemId: string

The system ID to register this actor under

optional
input: any

The input data to pass to the actor.

optional
state: any
optional
src: string

The source definition.