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

x/gauntlet/imports/xstate.ts>interpret

Work-in-progress front-end tool which does put a smile on my face
Latest
function interpret
Re-export
import { interpret } from "https://deno.land/x/gauntlet@v0.0.9/imports/xstate.ts";

Creates a new Interpreter instance for the given machine with the provided options, if any.

Type Parameters

optional
TContext = DefaultContext
optional
TStateSchema extends StateSchema = any
optional
TEvent extends EventObject = EventObject
optional
TTypestate extends Typestate<TContext> = { value: any; context: TContext; }

Parameters

machine: StateMachine<TContext, TStateSchema, TEvent, TTypestate>

The machine to interpret

optional
options: Partial<InterpreterOptions>

Interpreter options