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

x/deno_nest/src/interfaces/mod.ts>DynamicModule

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
interface DynamicModule
implements ModuleMetadata
import { type DynamicModule } from "https://deno.land/x/deno_nest@v3.5.1/src/interfaces/mod.ts";

Interface defining a Dynamic Module.

Properties

module: Constructor

A module reference

optional
global: boolean

When "true", makes a module global-scoped.

Once imported into any module, a global-scoped module will be visible in all modules. Thereafter, modules that wish to inject a service exported from a global module do not need to import the provider module.