UNPKG

@cycle/dom

Version:

The standard DOM Driver for Cycle.js, based on Snabbdom

17 lines (14 loc) 593 B
import {MemoryStream, Stream} from 'xstream'; import {PreventDefaultOpt} from './fromEvent'; import {MainDOMSource} from './MainDOMSource'; import {DocumentDOMSource} from './DocumentDOMSource'; import {BodyDOMSource} from './BodyDOMSource'; export interface EventsFnOptions { useCapture?: boolean; passive?: boolean; bubbles?: boolean; preventDefault?: PreventDefaultOpt; } // There is no MockedDOMSource as its functions return any, // which would overshadow the other members, making this union pointless export type DOMSource = MainDOMSource | DocumentDOMSource | BodyDOMSource;