# OverrideProvider Decorator decorators
Module | import { OverrideProvider } from "@tsed/di" |
---|---|
Source | /packages/di/src/decorators/overrideProvider.ts |
# Overview
function OverrideProvider(originalProvider: Type<any>): Function;
# Description
Override a provider which is already registered in ProviderRegistry.
- 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