From 83354b2b88218090988dd6e526b0a2505b57e0f1 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 6 Apr 2023 22:18:28 +0200 Subject: Updated 5 files and added 1110 files (automated) --- .../node_modules/domutils/lib/esm/traversal.d.ts | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 includes/external/addressbook/node_modules/domutils/lib/esm/traversal.d.ts (limited to 'includes/external/addressbook/node_modules/domutils/lib/esm/traversal.d.ts') diff --git a/includes/external/addressbook/node_modules/domutils/lib/esm/traversal.d.ts b/includes/external/addressbook/node_modules/domutils/lib/esm/traversal.d.ts new file mode 100644 index 0000000..213e6a9 --- /dev/null +++ b/includes/external/addressbook/node_modules/domutils/lib/esm/traversal.d.ts @@ -0,0 +1,65 @@ +import { AnyNode, ChildNode, Element, ParentNode } from "domhandler"; +/** + * Get a node's children. + * + * @category Traversal + * @param elem Node to get the children of. + * @returns `elem`'s children, or an empty array. + */ +export declare function getChildren(elem: AnyNode): ChildNode[]; +export declare function getParent(elem: AnyNode): ParentNode | null; +/** + * Gets an elements siblings, including the element itself. + * + * Attempts to get the children through the element's parent first. If we don't + * have a parent (the element is a root node), we walk the element's `prev` & + * `next` to get all remaining nodes. + * + * @category Traversal + * @param elem Element to get the siblings of. + * @returns `elem`'s siblings. + */ +export declare function getSiblings(elem: AnyNode): AnyNode[]; +/** + * Gets an attribute from an element. + * + * @category Traversal + * @param elem Element to check. + * @param name Attribute name to retrieve. + * @returns The element's attribute value, or `undefined`. + */ +export declare function getAttributeValue(elem: Element, name: string): string | undefined; +/** + * Checks whether an element has an attribute. + * + * @category Traversal + * @param elem Element to check. + * @param name Attribute name to look for. + * @returns Returns whether `elem` has the attribute `name`. + */ +export declare function hasAttrib(elem: Element, name: string): boolean; +/** + * Get the tag name of an element. + * + * @category Traversal + * @param elem The element to get the name for. + * @returns The tag name of `elem`. + */ +export declare function getName(elem: Element): string; +/** + * Returns the next element sibling of a node. + * + * @category Traversal + * @param elem The element to get the next sibling of. + * @returns `elem`'s next sibling that is a tag. + */ +export declare function nextElementSibling(elem: AnyNode): Element | null; +/** + * Returns the previous element sibling of a node. + * + * @category Traversal + * @param elem The element to get the previous sibling of. + * @returns `elem`'s previous sibling that is a tag. + */ +export declare function prevElementSibling(elem: AnyNode): Element | null; +//# sourceMappingURL=traversal.d.ts.map \ No newline at end of file -- cgit