interface ExternalResolver
Since 0.1.0

External resolver used for auto-registration fallback. A subset of IServiceRegistry — when a token is not in the DI container and autoRegister is enabled, the container delegates here.

Methods

has(token: string): boolean

Reports whether the external source can resolve the token.

resolve(token: string): unknown

Resolves a token from the external source.

Usage

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