Skip to content

Interface: ActionInvocation ​

A request to a controller action, as the middlewares receive it.

Properties ​

action ​

readonly action: ChannelActionInfo | HTTPActionInfo | ServiceActionInfo | CLIActionInfo

The requested action's description.


container ​

readonly container: Container

The request's container, destroyed when the request ends: the controller and the middleware classes are created in it.


context ​

readonly context: BaseContext<{ }> | CLIContext<{ }> | HTTPContext<{ }> | ServiceContext<{ }>

The request's context; its data is the action's input before validation (a middleware may change it).


params? ​

readonly optional params?: Record<string, unknown>

The parameters taken from the request's address (such as route parameters), merged over the data into the input.


signal? ​

readonly optional signal?: AbortSignal

Aborts when the request is aborted (its client gone, the entrypoint stopping).

Released under the MIT License.