# HandlerMetadata Class
Module | import { HandlerMetadata } from "@tsed/common" |
---|---|
Source | /packages/common/src/mvc/models/HandlerMetadata.ts |
# Overview
class HandlerMetadata {
readonly target: any;
readonly token: Type<any>;
/**
* @deprecated
*/
readonly methodClassName: string;
readonly propertyKey: string | symbol;
/**
* @deprecated
*/
readonly method: string;
readonly injectable: boolean;
readonly type: HandlerType;
readonly hasErrorParam: boolean;
readonly hasNextFunction: boolean;
handler: any;
constructor(options: IHandlerConstructorOptions);
get parameters(): ParamMetadata[];
getParams(): ParamMetadata[];
hasParamType(paramType: any): boolean;
}
# Members
readonly target: any;
readonly token: Type<any>;
readonly methodClassName: string;
readonly propertyKey: string | symbol;
readonly method: string;
readonly injectable: boolean;
readonly type: HandlerType;
readonly hasErrorParam: boolean;
readonly hasNextFunction: boolean;
handler: any;
get parameters(): ParamMetadata[];
getParams(): ParamMetadata[];
hasParamType(paramType: any): boolean;
- 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