Skip to content

Scopes · Core API

const Scopes: object;

Built-in provider lifetimes.

readonly Singleton: "singleton" = "singleton";

One instance cached by the container that owns the provider.

readonly Transient: "transient" = "transient";

A new instance for every resolution.

readonly Scoped: "scoped" = "scoped";

One instance cached by each resolving container.