import { BubblingEventHandler , EventHandler , EventHandlerWithOptions , TagName } from '../model' ; export const isEventHandlerWithOptions = < E extends { } , A extends TagName , Map extends { } , K extends keyof Map > ( handler ) : handler is EventHandlerWithOptions < E , A , Map , K > => Array . isArray ( handler ) ; export const isBubblingEventHandler = < E extends { } , A extends TagName , Map extends { } , K extends keyof Map > ( handler ) : handler is BubblingEventHandler < E , A , Map , K > => ! isEventHandlerWithOptions ( handler ) ;