Documents injecute 1.x · Migrating from 0.x
Skip to content

Interface: MiddlewareContext ​

Defined in: src/types.ts:286

Context passed to a Middleware.

Properties ​

container ​

readonly container: ServiceProvider<any>

Defined in: src/types.ts:288

The container the resolution runs in (read-only view).


depth ​

readonly depth: number

Defined in: src/types.ts:292

Nesting level: 0 for a get() call, 1 for its dependencies, and so on.


path ​

readonly path: readonly ServiceKey[]

Defined in: src/types.ts:290

Keys being resolved, outermost first; the last one is the current key.

Released under the MIT License.