Skip to content

Module

@tsed/di

Usage

typescript
import { Module } from "@tsed/di";

See /packages/di/src/types/common/decorators/module.ts.

Overview

ts
function Module(options?: Partial<ModuleOptions>): any;

Description

Declare a new Ts.ED module

Options

  • imports: List of Provider which must be built by injector before invoking the module
  • deps: List of provider must be injected to the module constructor (explicit declaration)

Released under the MIT License.