UNPKG

@tempots/dom

Version:

Fully-typed frontend framework alternative to React and Angular

12 lines (11 loc) 420 B
import { BrowserContext } from '../dom/browser-context'; import { Renderable } from '../types/domain'; /** * Creates a renderable DOM node. * * @param node - The DOM node to render. * @param ctx - The DOM context to render the node in. * @returns A renderable object that can be used to remove the rendered node from the DOM. * @public */ export declare const DOMNode: (node: Node) => Renderable<BrowserContext>;