interface DiPluginOptions
Since 0.1.0

Options for DiPlugin.

Properties

readonly
optional
defaultScope: ServiceScope

Default lifecycle scope for providers registered without an explicit scope. Defaults to 'singleton'.

readonly
optional
autoRegister: boolean

When true, resolving a token not registered in the container automatically falls back to the kernel's ServiceRegistry. The first successful fallback is cached as a singleton so subsequent resolves are fast. Explicit DI registrations always take precedence. Defaults to false.

Usage

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