Skip to main content
Module

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

Super type safe dependency injection 💉 for TypeScript (inspired by Diddly)
Latest
import * as lambdaIoc from "https://deno.land/x/lambda_ioc@1.0.0/lambda-ioc/deno/index.ts";

Functions

Given a dependency factory, returns a new asynchronous factory that will always resolve the same instance of the dependency.

Creates a new type-safe IoC container.

Given a function, and a list of named dependencies, creates a new dependency factory that will resolve a parameterless function wrapping the original function and its resolved dependencies.

Given a dependency factory, returns a new factory that will always resolve the same instance of the dependency.

Interfaces

Represents a type-safe IoC container with "auto-wired" dependencies resolution

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

Represents a read-only version of a type-safe IoC container with "auto-wired" dependencies resolution.

Represents a write-only version of a type-safe IoC container with "auto-wired" dependencies resolution.