ExecutionHooks
Popii / ExecutionHooks
Interface: ExecutionHooks<C>
Section titled “Interface: ExecutionHooks<C>”Defined in: runtime/execution.ts:8
Type Parameters
Section titled “Type Parameters”C extends ExecutionContext
Methods
Section titled “Methods”before()?
Section titled “before()?”
optionalbefore(context):void|Promise<void>
Defined in: runtime/execution.ts:8
Parameters
Section titled “Parameters”context
Section titled “context”C
Returns
Section titled “Returns”void | Promise<void>
after()?
Section titled “after()?”
optionalafter(context,outcome):void|Promise<void>
Defined in: runtime/execution.ts:8
Parameters
Section titled “Parameters”context
Section titled “context”C
outcome
Section titled “outcome”boolean
durationMs
Section titled “durationMs”number
errorCode?
Section titled “errorCode?”string
Returns
Section titled “Returns”void | Promise<void>