UNPKG

@openxmldev/linq-to-xml

Version:
30 lines (29 loc) 919 B
/** * @author Thomas Barnekow * @license MIT */ import { XAttribute } from './internal.js'; import { LinqIterableBase } from './LinqIterable.js'; /** * Provides additional methods specific to a `LinqIterable<XAttribute>`. */ export declare class LinqAttributes extends LinqIterableBase<XAttribute, LinqAttributes> { /** * Initializes a new instance with the given source sequence. * * @param source The source sequence. */ constructor(source: Iterable<XAttribute>); /** * Removes each `XAttribute` represented in this sequence from its parent * `XElement`. */ remove(): void; } /** * Converts an `Iterable<XAttribute>` into a LINQ-style iterable. * * @param source The source `Iterable<XAttribute>`. * @returns A `LinqAttributes` instance. */ export declare function linqAttributes(source: Iterable<XAttribute>): LinqAttributes;