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
| Name | Type | Default value | Defined in |
|---|---|---|---|
Singleton | "Singleton" | "Singleton" | src/wirestate-core/binding/binding.ts:33 |
Transient | "Transient" | "Transient" | src/wirestate-core/binding/binding.ts:34 |