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

x/oak_nest/modules/redis/deps.ts>Inject

Refer to nestjs to realize some common functions for Deno
Go to Latest
function Inject
import { Inject } from "https://deno.land/x/oak_nest@v1.14.0/modules/redis/deps.ts";

Inject decorator

For example:

const InjectModel = (name: string) => Inject(() => name);

Parameters

key: InjectParams

Returns

ParameterDecorator