UNPKG

803 BTypeScriptView Raw
1import { ResponseHandlerMetadataArgs } from './args/ResponseHandleMetadataArgs';
2import { ResponseHandlerType } from './types/ResponseHandlerType';
3/**
4 * Response handler metadata.
5 */
6export declare class ResponseHandlerMetadata {
7 /**
8 * Class on which's method decorator is set.
9 */
10 target: Function;
11 /**
12 * Method on which decorator is set.
13 */
14 method: string;
15 /**
16 * Property type. See ResponsePropertyMetadataType for possible values.
17 */
18 type: ResponseHandlerType;
19 /**
20 * Property value. Can be status code, content-type, header name, template name, etc.
21 */
22 value: any;
23 /**
24 * Secondary property value. Can be header value for example.
25 */
26 secondaryValue: any;
27 constructor(args: ResponseHandlerMetadataArgs);
28}