ServiceLifetime
constServiceLifetime:object
Defined in: src/types.ts:4
How long a resolved instance lives.
Type Declaration
Section titled “Type Declaration”Scoped
Section titled “Scoped”
readonlyScoped:"SCOPED"='SCOPED'
One instance per scope.
Singleton
Section titled “Singleton”
readonlySingleton:"SINGLETON"='SINGLETON'
One instance for the whole root provider, shared by every scope.
Transient
Section titled “Transient”
readonlyTransient:"TRANSIENT"='TRANSIENT'
A new instance on every resolution.