Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xstate/src/StateNode.ts>StateNode#next

State machines and statecharts for the modern web.
Go to Latest
method StateNode.prototype.next
import { StateNode } from "https://deno.land/x/xstate@xstate@5.0.0-beta.36/src/StateNode.ts";

Parameters

state: State<TContext, TEvent, TODO, TODO, TODO>
event: TEvent

Returns

TransitionDefinition<TContext, TEvent>[] | undefined