# Converter Decorator
Module | import { Converter } from "@tsed/common" |
---|---|
Source | /packages/common/src/converters/decorators/converter.ts |
# Overview
function Converter(...classes: any[]): Function;
# Description
@Converter(...targetTypes)
let you to define some converters for a certain type/Class.
It useful for a generic conversion.
- 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