import { Stream , multicast } from 'most' ; import { domEvent } from '@most/dom-event' ; export function createEventStream ( eventType , useCapture ) { return function ( element ) : Stream < Event > { return multicast ( domEvent ( eventType , element , useCapture ) as Stream < Event > ) ; } ; }