Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/momentum/di/mod.ts

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
import * as momentum from "https://deno.land/x/momentum@v0.8.2/di/mod.ts";

Classes

Resolves dependencies

Hierarchical cache used to hold resolved dependencies based on scope lifetime

Dependency injection container which registers dependencies and creates dependency graphs represent the dependency tree.

Enums

Defines the lifetime of a dependency

Functions

Decorator used to inject a type using a type identifier

Decorator used to mark a type as available for dependency injection globally.

Decorator use to mark an injected type as optional. If the type is not able to be resolved, the argument will be undefined

Interfaces

Represents an injectable that can be injected at any time, but will not be resolved until a call is made to the value property.