import { Event } from '../interfaces/Event' ; import { EventListener } from '../types/EventListener' ; export function group ( ... listeners ) { return ( event , unsubscribe ) : void => { listeners . forEach ( ( listener ) : void => { listener ( event , unsubscribe ) ; } ) ; } ; }