Skip to content

Variable: BindingScope

ts
const BindingScope: {
  Singleton: "Singleton";
  Transient: "Transient";
};

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

Lifetime scope names accepted by binding descriptors:

  • Singleton (default): the value is constructed once and reused for every resolution.
  • Transient: a new value is constructed for every resolution and never cached.

Type Declaration

NameTypeDefault valueDefined in
Singleton"Singleton""Singleton"src/wirestate-core/binding/binding.ts:33
Transient"Transient""Transient"src/wirestate-core/binding/binding.ts:34