@openxmldev/linq-to-xml
Version:
LINQ to XML for TypeScript
26 lines (25 loc) • 1.12 kB
TypeScript
/**
* @author Thomas Barnekow
* @license MIT
*/
import { XContainer, XNode } from '../internal.js';
/**
* For the elements contained in the source sequence, returns the concatenated
* sequences of descendant nodes of such elements in document order.
*
* @typeParam T The type of the elements of the source sequence.
* @param source The source sequence of elements.
* @returns The concatenated, flat sequence of descendant nodes in document order.
*/
export declare function descendantNodes<T extends XContainer>(source: Iterable<T>): Iterable<XNode>;
/**
* For the elements contained in the source sequence, returns the concatenated
* sequences of descendant nodes of such elements, including the elements
* themselves, in document order.
*
* @typeParam T The type of the elements of the source sequence.
* @param source The source sequence of elements.
* @returns The concatenated, flat sequence of descendant nodes, including
* the source elements, in document order
*/
export declare function descendantNodesAndSelf<T extends XContainer>(source: Iterable<T>): Iterable<XNode>;