Skip to content

Scope · Core API

type Scope = typeof Scopes[keyof typeof Scopes];

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.