Skip to main content
Module

x/xstate/src/eventUtils.ts>createDoneStateEvent

Actor-based state management & orchestration for complex app logic.
Go to Latest
function createDoneStateEvent
import { createDoneStateEvent } from "https://deno.land/x/xstate@xstate%405.12.0/src/eventUtils.ts";

Returns an event that represents that a final state node has been reached in the parent state node.

Parameters

id: string

The final state node's parent state node id

optional
output: unknown

The data to pass into the event