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

x/lambda_ioc/lambda-ioc/src/container.ts>ReadableAsyncContainer

Super type safe dependency injection 💉 for TypeScript (inspired by Diddly)
Latest
interface ReadableAsyncContainer
import { type ReadableAsyncContainer } from "https://deno.land/x/lambda_ioc@1.0.0/lambda-ioc/src/container.ts";

Type Parameters

TAsyncDependencies extends Record<ConstrainedKey, unknown>

Methods

resolveAsync<TName extends keyof TAsyncDependencies>(name: TName): Promise<TAsyncDependencies[TName]>

Resolve an "asynchronous" dependency from the container.