# Type Constant
Module | import { Type } from "@tsed/core" |
---|---|
Source | /packages/core/src/interfaces/Type.ts |
# Overview
const Type: FunctionConstructor;
/**
*
*/
export interface Type<T = any> extends Function {
new (...args: any[]): T;
}
# Description
An example of a Type
is MyCustomComponent
filters, which in JavaScript is be represented by
the MyCustomComponent
constructor function.
# Members
new (...args: any[]): T;
- 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