import 'reflect-metadata' ; import { InjectedFactoryPluginType } from '../InjectedServiceFactory' ; const metaKey = Symbol ( 'stix:di:inject' ) ; export const inject = ( dependency ? , plugin ? ) => { return ( target , property ) => { const meta = Reflect . getMetadata ( metaKey , target ) ; const result = Array . isArray ( meta ) ? meta . concat ( { property , dependency , plugin } ) : [ { property , dependency , plugin } ] ; Reflect . defineMetadata ( metaKey , result , target ) ; } ; } ; export const getDependencies = ( target ) => Reflect . getMetadata ( metaKey , target ) ;