Skip to content

Type Alias: Binding

ts
type Binding = 
  | Newable<object>
  | BindingDescriptor;

Defined in: src/wirestate-core/binding/binding.ts:220

Binding entry accepted by container registration APIs.

Remarks

Pass a bare @Injectable() class when the class should be its own singleton token. Pass a BindingDescriptor when the binding needs an explicit token, a stored value, a factory, or non-default scope. ContainerConfig.bindings and container.bind(...) both accept this shape.