UNPKG

vasille

Version:

The same framework which is designed to build bulletproof frontends (core library).

22 lines (21 loc) 708 B
import { Fragment } from "./node.js"; import { IValue } from "../core/ivalue.js"; import { Runner } from "./runner.js"; interface WatchOptions<Node, Element, TagOptions extends object, T> { model: IValue<T>; slot?: (ctx: Fragment<Node, Element, TagOptions>, value: T) => void; } /** * Watch Node * @class Watch * @extends Fragment */ export declare class Watch<Node, Element, TagOptions extends object, T> extends Fragment<Node, Element, TagOptions> { private readonly model; private readonly slot?; private handler?; constructor(input: WatchOptions<Node, Element, TagOptions, T>, runner: Runner<Node, Element, TagOptions>); compose(): void; destroy(): void; } export {};