Skip to content
mercury framework
GitHub

ActionResult

ActionResult = { data: unknown; ok: true; } | { error: string; ok: false; }

Defined in: types/plugin-types/index.ts:98

The outcome of running a deferred, confirm-required action. Deliberately generic (no display channel, unlike CliResult): the confirmation subsystem reports data or error and nothing more. A CLI command’s execution is one producer of it, a future non-CLI action another.