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.
Type Parameters
Section titled “Type Parameters”Out
Parameters
Section titled “Parameters”Plan<Out>
The compiled plan to execute
RunContext = {}
Optional execution context
Returns
Section titled “Returns”Promise<Out>
Promise resolving to the output value
Throws
Section titled “Throws”Error if the plan execution fails