UNPKG

state-switch

Version:

State Switch is a Change Monitor/Guarder for Async Actions.

10 lines 474 B
import type { MachineOptions } from 'xstate'; import type { ServiceCtlContext, ServiceCtlEvent } from './machine-config.js'; interface ServiceCtlServiceOptions { start: () => Promise<void>; stop: () => Promise<void>; } declare const buildMachineOptions: (options: ServiceCtlServiceOptions) => MachineOptions<ServiceCtlContext, ServiceCtlEvent>; export type { ServiceCtlServiceOptions, }; export { buildMachineOptions, }; //# sourceMappingURL=machine-options.d.ts.map