UNPKG

@cycle/html

Version:

A driver for HTML strings based on Snabbdom and the DOM driver

13 lines (12 loc) 433 B
import { Stream, MemoryStream } from 'xstream'; import { EventsFnOptions } from '@cycle/dom'; export declare class HTMLSource { private _name; private _html$; private _empty$; constructor(html$: Stream<string>, _name: string); elements(): MemoryStream<string>; element(): MemoryStream<string>; select(selector: string): HTMLSource; events(eventType: string, options?: EventsFnOptions): Stream<any>; }