import { getGlobalType , getClsTypeByDecorator } from '../utils' ; import { getMetadata } from '../class/metadata' ; import { KeyType } from '../utils/types' ; /** subClasses/implements inject */ export function imports ( { type , always = false , } ) { return ( target , key ) => { getMetadata ( target . constructor ) . injects . push ( { key , globalType : getGlobalType ( type ) , type : 'imports' , always , typeCls : type , } ) ; } ; }