interface ClassProvider
Since 0.1.0

Provides a service by constructing a class, injecting the listed tokens as constructor arguments.

Type Parameters

The service type

Properties

The class to instantiate.

readonly
optional
inject: readonly string[]

Tokens resolved and passed as constructor arguments, in order.

Usage

import { type ClassProvider } from "common/src/index.ts";