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

x/oak_nest/src/decorators/inject.ts>Inject

Refer to nestjs to realize some common functions for Deno, support hono and oak
Latest
function Inject
import { Inject } from "https://deno.land/x/oak_nest@v3.0.1/src/decorators/inject.ts";

Inject decorator

For example:

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

Returns

ParameterDecorator