method ContainerBuilder.prototype.register
ContainerBuilder.prototype.register<T>(
token: string,
provider: Provider<T>,
options?: ProviderOptions
): this

Queues a provider registration to be applied at build time.

Type Parameters

The service type

Parameters

token: string

The capability token

provider: Provider<T>

Class, factory, or value provider

optional
options: ProviderOptions

Lifecycle scope

Return Type

this

This builder for chaining

Usage

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