import { ContentObject } from '../interfaces/open-api-spec.interface' ; export class MimetypeContentWrapper { wrap ( mimetype , obj ) { const content = mimetype . reduce ( ( acc , item ) => ( { ... acc , [ item ] : obj } ) , { } ) ; return { content } ; } }