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

Interface: RegistrationInfo ​

Defined in: src/types.ts:266

Read-only metadata about a registration. Returned by ServiceProvider.getRegistration.

Properties ​

dependencies ​

readonly dependencies: readonly DependencyInfo[]

Defined in: src/types.ts:272

The dependencies passed to the factory, in order.


depth ​

readonly depth: number

Defined in: src/types.ts:274

0 when registered in the container that was asked, 1 for its parent, and so on.


key ​

readonly key: ServiceKey

Defined in: src/types.ts:268

The registered key.


kind ​

readonly kind: RegistrationKind

Defined in: src/types.ts:270

How the service was registered.


linked? ​

readonly optional linked?: RegistrationInfo

Defined in: src/types.ts:280

For namespace-entry and delegate: the registration it resolves to.


namespace? ​

readonly optional namespace?: string

Defined in: src/types.ts:278

The namespace name, for namespace and namespace-entry registrations.


target? ​

readonly optional target?: ServiceKey

Defined in: src/types.ts:276

Alias target, or the key inside the namespace container.

Released under the MIT License.