import { has } from '../../has/has' ; import { Event } from '../../../core/createEvent/createEvent.h' ; param arg private export const isEvent = < P = { } , M = { } > ( arg ? ) : arg is Event < P , M > => { return arg != null && typeof arg === 'object' && has ( 'type' , arg ) && typeof arg . type === 'string' ; } ;