UNPKG

@tempots/dom

Version:

Fully-typed frontend framework alternative to React and Angular

11 lines (10 loc) 513 B
import { HeadlessContext } from '../dom/headless-context'; import { Renderable, TNode } from '../types/domain'; /** * Returns a renderable function that executes the given function with the current DOMContext as argument. * * @param fn - The function to be executed with the DOMContext argument. * @returns A Clear function that can be used to clean up any resources associated with the execution. * @public */ export declare const OnHeadlessCtx: (fn: (ctx: HeadlessContext) => TNode | void) => Renderable;