UNPKG

519 BTypeScriptView Raw
1import { Driver } from '@cycle/run';
2import { Module, Options as SnabbdomOptions, VNode } from 'snabbdom';
3import { Stream } from 'xstream';
4import { MainDOMSource } from './MainDOMSource';
5export interface DOMDriverOptions {
6 modules?: Array<Partial<Module>>;
7 reportSnabbdomError?(err: any): void;
8 snabbdomOptions?: SnabbdomOptions;
9}
10declare function makeDOMDriver(container: string | Element | DocumentFragment, options?: DOMDriverOptions): Driver<Stream<VNode>, MainDOMSource>;
11export { makeDOMDriver };