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

x/momentum/cli/deps.ts>Injectable

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
function Injectable
import { Injectable } from "https://deno.land/x/momentum@v0.8.2/cli/deps.ts";

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

Returns

ClassDecorator

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

Parameters

options: InjectableOptions

Returns

ClassDecorator

Decorator used to mark a type as available for dependency injection using a identifier token

Parameters

identifier: TypeIdentifier
optional
options: InjectableOptions

Returns

ClassDecorator