import 'reflect-metadata' ; import { getGlobalType } from './getGlobalType' ; export function getClsTypeByDecorator ( type , target , key ) { if ( ! type && Reflect && Reflect . getMetadata ) { type = Reflect . getMetadata ( 'design:type' , target , key ) ; } return type ; } export function getGlobalTypeByDecorator ( type , target , key ) { return getGlobalType ( getClsTypeByDecorator ( type , target , key ) ) ; }