# IModuleOptions Interface
Module | import { IModuleOptions } from "@tsed/di" |
---|---|
Source | /packages/di/src/decorators/module.ts |
# Overview
interface IModuleOptions extends Omit<TsED.Configuration, "scopes"> {
/**
* Provider scope
*/
scope?: ProviderScope;
/**
* Providers must be initialized before building this module
*/
imports?: TokenProvider[];
/**
* Explicit token must be injected in the constructor
*/
deps?: TokenProvider[];
/**
* A list of resolvers to inject provider from external DI.
*/
resolvers?: IDIResolver[];
/**
* Additional properties are stored as provider configuration.
*/
[key: string]: any;
}
# Members
scope?: ProviderScope;
Provider scope
imports?: TokenProvider[];
Providers must be initialized before building this module
deps?: TokenProvider[];
Explicit token must be injected in the constructor
resolvers?: IDIResolver[];
A list of resolvers to inject provider from external DI.
[key: string]: any;
Additional properties are stored as provider configuration.
- 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