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

x/xstate/src/eventUtils.ts>createDoneStateEvent

State machines and statecharts for the modern web.
Go to Latest
function createDoneStateEvent
import { createDoneStateEvent } from "https://deno.land/x/xstate@xstate%405.0.0-beta.36/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