@creamapi/cream
Version:
Concise REST API Maker - An extension library for express to create REST APIs faster
10 lines (9 loc) • 478 B
TypeScript
import { MessageType } from '../ExchangeUtils/Message';
import { Constructable } from '../Utils/Constructable';
/**
* This decorator is used to decorate a class to add information about
* the content type that should be set in the Content-Type header
* @param contentType the content type that should be set in the header
* @returns the decorator of the function
*/
export declare function ContentType<T extends Constructable>(contentType: MessageType): (target: T) => T;