@sleekify/sleekify
Version:
A TypeScript decorator driven approach for developing web applications.
12 lines (11 loc) • 615 B
TypeScript
/**
* You may apply this decorator to your resource class or the resource class's
* methods to provide the default media type for requests. If this is present
* on both the class and a class method, then the decorator on the method will
* have higher precedence. This decorator should be used with the Schema
* decorator when your media type is not application/json. JSON is assumed to
* be the default media type.
*
* @param mediaTypes The supported media types
*/
export declare function Consumes(mediaTypes: string[]): (target: object, propertyKey?: string, _descriptor?: PropertyDescriptor) => any;