interface ContainerConfig
Since 0.1.0

Configuration for constructing a DiContainer.

Properties

readonly
defaultScope: ServiceScope

Default lifecycle scope for providers without an explicit scope.

Optional external resolver for auto-registration fallback.

readonly
autoRegister: boolean

When true, resolving an unregistered token falls back to the external resolver and caches the result as a singleton.

Parent registry for hierarchical lookups (internal).

readonly
optional
parentScopes: ScopeManager

Parent scope manager sharing singletons (internal).

Usage

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