typenexus
Version:
TypeNexus is a good tool for API encapsulation and management. It provides a clean and lightweight way to package TypeORM functionality, helping you build applications faster while reducing template code redundancy and type conversion work.
32 lines (26 loc) • 671 B
text/typescript
import { ResponseHandlerType } from '../types/ResponseHandlerType.js';
/**
* Storages information about registered response handlers.
*/
export interface ResponseHandlerMetadataArgs {
/**
* Class on which's method decorator is set.
*/
target: Function;
/**
* Method on which decorator is set.
*/
method: string;
/**
* Property type. See ResponsePropertyMetadataType for possible values.
*/
type: ResponseHandlerType;
/**
* Property value. Can be status code, content-type, header name, template name, etc.
*/
value?: any;
/**
* Secondary property value. Can be header value for example.
*/
secondaryValue?: any;
}