import { IbkrEvents } from './IbkrEvents' ; const emitter = IbkrEvents . Instance ; interface PublishToListeners { topic : string ; data : any ; } export const publishDataToTopic = ( args ) : boolean => { const { topic , data } = args ; return emitter . emit ( topic , data ) ; } ;