Skip to content

Scope

Scope = typeof Scopes[keyof typeof Scopes]

Defined in: packages/di-craft/src/core/scope/scope.ts:17

Provider lifetime.

  • singleton: one cached instance in the container that owns the provider.
  • scoped: one cached instance in the container that resolves the provider.
  • transient: a new instance for every resolution.