ExecutionContextOptions
interface in meocord/testing Since 4.1.0
interface ExecutionContextOptionsWhat createExecutionContext describes besides the handler.
Members
args
args?: unknown[]The handler's arguments, such as the interaction and its params.
params
params?: Record<string, unknown>The params of the guard's { provide, params } entry, returned by getParams().
type
type?: ExecutionContextTypeWhat is being handled. Read from the first argument when omitted.
handlerParams
handlerParams?: Record<string, unknown>The handler's params, returned by getHandlerParams() and as getArgs()'s second argument, such as
the validated and piped params an interceptor reads after next.handle(). Without it, args'
second argument.