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/querying.d.ts | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 includes/external/addressbook/node_modules/domutils/lib/querying.d.ts (limited to 'includes/external/addressbook/node_modules/domutils/lib/querying.d.ts') diff --git a/includes/external/addressbook/node_modules/domutils/lib/querying.d.ts b/includes/external/addressbook/node_modules/domutils/lib/querying.d.ts new file mode 100644 index 0000000..3e2296a --- /dev/null +++ b/includes/external/addressbook/node_modules/domutils/lib/querying.d.ts @@ -0,0 +1,62 @@ +import { Element, AnyNode } from "domhandler"; +/** + * Search a node and its children for nodes passing a test function. + * + * @category Querying + * @param test Function to test nodes on. + * @param node Node to search. Will be included in the result set if it matches. + * @param recurse Also consider child nodes. + * @param limit Maximum number of nodes to return. + * @returns All nodes passing `test`. + */ +export declare function filter(test: (elem: AnyNode) => boolean, node: AnyNode | AnyNode[], recurse?: boolean, limit?: number): AnyNode[]; +/** + * Search an array of node and its children for nodes passing a test function. + * + * @category Querying + * @param test Function to test nodes on. + * @param nodes Array of nodes to search. + * @param recurse Also consider child nodes. + * @param limit Maximum number of nodes to return. + * @returns All nodes passing `test`. + */ +export declare function find(test: (elem: AnyNode) => boolean, nodes: AnyNode[], recurse: boolean, limit: number): AnyNode[]; +/** + * Finds the first element inside of an array that matches a test function. + * + * @category Querying + * @param test Function to test nodes on. + * @param nodes Array of nodes to search. + * @returns The first node in the array that passes `test`. + * @deprecated Use `Array.prototype.find` directly. + */ +export declare function findOneChild(test: (elem: T) => boolean, nodes: T[]): T | undefined; +/** + * Finds one element in a tree that passes a test. + * + * @category Querying + * @param test Function to test nodes on. + * @param nodes Array of nodes to search. + * @param recurse Also consider child nodes. + * @returns The first child node that passes `test`. + */ +export declare function findOne(test: (elem: Element) => boolean, nodes: AnyNode[], recurse?: boolean): Element | null; +/** + * @category Querying + * @param test Function to test nodes on. + * @param nodes Array of nodes to search. + * @returns Whether a tree of nodes contains at least one node passing the test. + */ +export declare function existsOne(test: (elem: Element) => boolean, nodes: AnyNode[]): boolean; +/** + * Search and array of nodes and its children for elements passing a test function. + * + * Same as `find`, but limited to elements and with less options, leading to reduced complexity. + * + * @category Querying + * @param test Function to test nodes on. + * @param nodes Array of nodes to search. + * @returns All nodes passing `test`. + */ +export declare function findAll(test: (elem: Element) => boolean, nodes: AnyNode[]): Element[]; +//# sourceMappingURL=querying.d.ts.map \ No newline at end of file -- cgit