UNPKG

@motorcycle/mostly-dom

Version:

Motorcycle.ts adapter for mostly-dom. Built on @motorcycle/dom.

44 lines 1.28 kB
"use strict"; /** * Virtual DOM node type from mostly-dom * @name Types * @example * // All other types are used directly from mostly-dom * // https://github.com/TylorS167/mostly-dom * @type */ function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); /** * DomSource type as defined by @motorcycle/dom * @name DomSource * @example * interface DomSource { * query(cssSelector: CssSelector): DomSource * elements<El extends Element = Element>(): Stream<ReadonlyArray<El>> * events<Ev extends Event = Event>(eventType: StandardEvents, options?: EventListenerOptions): Stream<Ev> * cssSelectors(): ReadonlyArray<CssSelector> * } * @type */ /** * Functions for describing your views. * Re-exported from [`mostly-dom`](https://github.com/TylorS167/mostly-dom) * * @name hyperscript-helpers * @example * import { VNode, div, h1, button } from '@motorcycle/mostly-dom' * * function view(amount: number): VNode { * return div([ * h1(`Clicked ${amount} times!`), * button('Click me') * ]) * } */ __export(require("mostly-dom")); __export(require("./isolate")); __export(require("./makeDomComponent")); //# sourceMappingURL=index.js.map