@motorcycle/mostly-html
Version:
Server-side rendering for Motorcycle.ts
24 lines (23 loc) • 557 B
TypeScript
import { DomSinks, DomSources } from '@motorcycle/mostly-dom';
import { Stream } from '@motorcycle/types';
/**
* @name HtmlSinks
* @example
* export type HtmlSinks = {
* readonly view$: Stream<VNode>
* }
* @type
*/
export declare type HtmlSinks = DomSinks;
/**
* @name
* @example
* export type HtmlSources<A = Element, B = Event> = {
* readonly html$: Stream<HtmlString>
* readonly dom: DomSource<A, B>
* }
* @type
*/
export declare type HtmlSources<A = Element, B = Event> = DomSources<A, B> & {
readonly html$: Stream<string>;
};