import { Metadata } from "../planning/metadata" ; function propertyEventDecorator ( eventKey , errorMessage ) { return ( ) => { return ( target , propertyKey ) => { const metadata = new Metadata ( eventKey , propertyKey ) ; if ( Reflect . hasOwnMetadata ( eventKey , target . constructor ) ) { throw new Error ( errorMessage ) ; } Reflect . defineMetadata ( eventKey , metadata , target . constructor ) ; } ; } ; } export { propertyEventDecorator } ;