Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/xstate/src/types.ts>ContextFactory

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

Type Parameters

TContext extends MachineContext
TInput
definition: (unnamed 0: { spawn: Spawner; input: TInput; }) => TContext