UNPKG

arvo-event-handler

Version:

Type-safe event handler system with versioning, telemetry, and contract validation for distributed Arvo event-driven architectures, featuring routing and multi-handler support.

15 lines (14 loc) 480 B
import type { ArvoEvent } from 'arvo-core'; import type { Snapshot } from 'xstate'; import type ArvoMachine from '../ArvoMachine'; import type { EnqueueArvoEventActionParam } from '../ArvoMachine/types'; export type ExecuteMachineInput = { machine: ArvoMachine<any, any, any, any, any>; state: Snapshot<any> | null; event: ArvoEvent; }; export type ExecuteMachineOutput = { state: Snapshot<any>; events: EnqueueArvoEventActionParam[]; finalOutput: any; };