Skip to content

runOk

runOk<Out>(plan, ctx): Promise<Out>

Defined in: execution/run.ts:618

Execute a plan and return the output value directly, throwing on failure.

Convenience wrapper around run() for cases where you just want the value and failures should be exceptions.

Out

Plan<Out>

The compiled plan to execute

RunContext = {}

Optional execution context

Promise<Out>

Promise resolving to the output value

Error if the plan execution fails