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

x/deno_nest/src/constants.ts>INQUIRER

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
variable INQUIRER
import { INQUIRER } from "https://deno.land/x/deno_nest@v3.6.1/src/constants.ts";

Used for inject the parent class of the current class. It must used with @Injectable decorator and scope should be Scope.TRANSIENT

Examples

Example 1

export class LogService {
  parentName: string;

  constructor(@Inject(INQUIRER) private parentClass: Constructor) {
    this.parentName = this.parentClass.name;
  }
}

type

"INQUIRER"