# Module Decorator
Module | import { Module } from "@tsed/di" |
---|---|
Source | /packages/di/src/decorators/module.ts |
# Overview
function Module(options?: Partial<IModuleOptions>): any;
# Description
Declare a new Ts.ED module
# Options
- imports: List of Provider which must be built by injector before invoking the module
- resolvers: List of external DI must be used to resolve unknown provider
- deps: List of provider must be injected to the module constructor (explicit declaration)
- Session & cookies
- Passport.js
- TypeORM
- Mongoose
- GraphQL
- Socket.io
- Swagger
- AJV
- Multer
- Serve static files
- Templating
- Throw HTTP Exceptions
- Customize 404
- AWS
- Jest
- Seq
- Controllers
- Providers
- Model
- Converters
- Middlewares
- Pipes
- Interceptors
- Authentication
- Hooks
- Injection scopes
- Custom providers
- Custom endpoint decorator
- Testing