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.19/src/types.ts";
definition: <T extends ActorLogic<any, any> | string>(logic: T, options?: Partial<{ id: string; systemId?: string; input: any; }>) => T extends ActorLogic<infer TActorEvent, infer TActorEmitted, infer _, infer __, infer ___> ? ActorRef<TActorEvent, TActorEmitted> : ActorRef<any, any>