UNPKG

@tempots/dom

Version:

Fully-typed frontend framework alternative to React and Angular

25 lines (24 loc) 759 B
/** * Removes the specified node from the DOM. * * @param node - The node to be removed from the DOM. * @internal */ export declare const _removeDOMNode: (node: Node) => void; /** * Returns the given `node` if it is an `Element`, or the parent `Element` of * the given `node` if it is not an `Element`. * * @param node - The `Node` to get the `Element` for. * @returns The `Element` for the given `node`. * @internal */ export declare const _getSelfOrParentElement: (node: Node) => HTMLElement; /** * Determines if the given `Node` is an `Element`. * * @param node - The `Node` to check. * @returns `true` if the `node` is an `Element`, `false` otherwise. * @internal */ export declare const _isElement: (node: Node) => node is HTMLElement;