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

Type Alias: RegistrationKind ​

RegistrationKind = "singleton" | "transient" | "instance" | "alias" | "namespace" | "namespace-entry" | "delegate"

Defined in: src/types.ts:248

How a service was registered.

  • singleton / transient: a factory, created once / on every resolution
  • instance: a value added with addInstance
  • alias: points to another key (target)
  • namespace: a namespace container added with namespace()
  • namespace-entry: Namespace.key, resolved from the namespace container
  • delegate: a namespace service replaced by the parent container

Released under the MIT License.