interface FactoryProvider
Since 0.1.0

Provides a service via a factory function.

Type Parameters

The service type

Properties

readonly
useFactory: () => T

Factory invoked to produce the instance.

Usage

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