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

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

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

Type Parameters

TSyncDependencies extends Record<ConstrainedKey, unknown>

Methods

resolve(name: "$"): this

Resolve a "synchronous" dependency from the container.

resolve<TName extends keyof TSyncDependencies>(name: TName): TSyncDependencies[TName]