import { Type } from '@nestjs/common' ; import { DECORATORS } from '../constants' ; export const exploreGlobalApiExtraModelsMetadata = ( metatype ) : Function [ ] => { const extraModels = Reflect . getMetadata ( DECORATORS . API_EXTRA_MODELS , metatype ) ; return extraModels || [ ] ; } ; export const exploreApiExtraModelsMetadata = ( instance , prototype , method ) : Function [ ] => Reflect . getMetadata ( DECORATORS . API_EXTRA_MODELS , method ) || [ ] ;