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

x/xstate/src/types.ts>Spawner

State machines and statecharts for the modern web.
Go to Latest
type alias Spawner
import { type Spawner } from "https://deno.land/x/xstate@xstate%405.0.0-beta.13/src/types.ts";
definition: <T extends ActorBehavior<any, any> | string>(behavior: T, options?: Partial<{ id: string; systemId?: string; input: any; }>) => T extends ActorBehavior<infer TActorEvent, infer TActorEmitted> ? ActorRef<TActorEvent, TActorEmitted> : ActorRef<any, any>