import { Class , EventInterface } from '@boostercloud/framework-types' ; import { Booster } from '../booster' ; param eventClass constructor export function Event < TEvent extends EventInterface > ( eventClass ) { Booster . configureCurrentEnv ( ( config ) : void => { if ( config . events [ eventClass . name ] ) { throw new Error ( `A event called ${ eventClass . name } is already registered.
        If you think that this is an error, try performing a clean build.` ) ; } config . events [ eventClass . name ] = { class : eventClass , } ; } ) ; }