import { Type } from '@nestjs/common' ; import { DECORATORS } from '../constants' ; export const exploreGlobalApiConsumesMetadata = ( metatype ) => { const consumes = Reflect . getMetadata ( DECORATORS . API_CONSUMES , metatype ) ; return consumes ? { consumes } : undefined ; } ; export const exploreApiConsumesMetadata = ( instance , prototype , method ) : string [ ] | undefined => Reflect . getMetadata ( DECORATORS . API_CONSUMES , method ) ;