@tempots/dom
Version:
Fully-typed frontend framework alternative to React and Angular
26 lines (25 loc) • 835 B
TypeScript
/**
* 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;
export declare const _isFragment: (node: Node) => node is DocumentFragment;