1 | import {MemoryStream, Stream} from 'xstream';
|
2 | import {PreventDefaultOpt} from './fromEvent';
|
3 | import {MainDOMSource} from './MainDOMSource';
|
4 | import {DocumentDOMSource} from './DocumentDOMSource';
|
5 | import {BodyDOMSource} from './BodyDOMSource';
|
6 |
|
7 | export interface EventsFnOptions {
|
8 | useCapture?: boolean;
|
9 | passive?: boolean;
|
10 | bubbles?: boolean;
|
11 | preventDefault?: PreventDefaultOpt;
|
12 | }
|
13 |
|
14 | // There is no MockedDOMSource as its functions return any,
|
15 | // which would overshadow the other members, making this union pointless
|
16 | export type DOMSource = MainDOMSource | DocumentDOMSource | BodyDOMSource;
|