UNPKG

899 BTypeScriptView Raw
1import { ApiResponseSchemaHost } from '../decorators';
2export declare class ResponseObjectMapper {
3 private readonly mimetypeContentWrapper;
4 toArrayRefObject(response: Record<string, any>, name: string, produces: string[]): {
5 content: import("../interfaces/open-api-spec.interface").ContentObject;
6 };
7 toRefObject(response: Record<string, any>, name: string, produces: string[]): {
8 content: import("../interfaces/open-api-spec.interface").ContentObject;
9 };
10 wrapSchemaWithContent(response: ApiResponseSchemaHost, produces: string[]): ApiResponseSchemaHost | {
11 content: import("../interfaces/open-api-spec.interface").ContentObject;
12 description?: string;
13 headers?: import("../interfaces/open-api-spec.interface").HeadersObject;
14 links?: import("../interfaces/open-api-spec.interface").LinksObject;
15 status?: number;
16 };
17}