method ContainerBuilder.prototype.setDefaultScope
ContainerBuilder.prototype.setDefaultScope(scope: ServiceScope): this

Sets the default lifecycle scope for providers registered without an explicit scope.

Parameters

scope: ServiceScope

The default scope

Return Type

this

This builder for chaining

Usage

import { ContainerBuilder } from "di-plugin/src/index.ts";