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

x/oak_nest/modules/postgres/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.15.1/modules/postgres/deps.ts";

Inject decorator

For example:

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

Parameters

key: InjectParams

Returns

ParameterDecorator