Skip to main content
Module

x/momentum/di/mod.ts>Inject

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 Inject
import { Inject } from "https://deno.land/x/momentum@v0.8.2/di/mod.ts";

Decorator used to inject a type using a type identifier

Type Parameters

optional
T = unknown

Parameters

identifier: TypeIdentifier<T>
optional
options: { defer: boolean; }

Returns

PropertyDecorator & ParameterDecorator