import { EffectDef , EffectMethod } from '../types/effect' ; import { setEffectMetadata } from '../metadata/effect' ; export function Effect ( effects ) { return function ( target , name , _descriptor ) { setEffectMetadata ( target , name , Array . isArray ( effects ) ? effects : [ effects ] ) ; } ; }