Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/lambda_ioc/lambda-ioc/deno/index.ts>DependencyFactory

Super type safe dependency injection 💉 for TypeScript (inspired by Diddly)
Latest
interface DependencyFactory
implements SyncDependencyFactory<T, TContainer>, AsyncDependencyFactory<T, TContainer>
import { type DependencyFactory } from "https://deno.land/x/lambda_ioc@1.0.0/lambda-ioc/deno/index.ts";

Represents a dependency factory: a function that, given an IoC container, it is able to instantiate a specific dependency.

Type Parameters

T
TContainer extends ReadableContainer<Record<ConstrainedKey, unknown>, Record<ConstrainedKey, unknown>>