import { DomainEvent } from '@serenity-js/core/lib/events' ; import { StageCrewMember } from '@serenity-js/core/lib/stage' ; export function givenFollowingEvents ( ... events ) { return ( { areSentTo : ( crewMember ) => { events . forEach ( event => crewMember . notifyOf ( event ) ) ; } , } ) ; }