import { has } from '../has/has' ; import { AnyEventCreator } from '../../core/createEvent/createEvent.h' ; private export function getEventType ( eventCreator ) { return has ( 'getType' , eventCreator ) ? eventCreator . getType ( ) : eventCreator ; }