UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

42 lines (41 loc) 1.14 kB
import { BidirectionalCollection } from "../Collections/BidirectionalCollection.js"; import { INode } from "./Generic/INode.js"; import { NodeItem } from "./NodeItem.js"; /** * Represents a collection of items. * * @template TNode * The type of the nodes. * * @template TItem * The type of the item provided by the nodes. */ export declare class NodeCollection<TNode extends INode<TItem>, TItem extends NodeItem> extends BidirectionalCollection<INode<TItem>, TNode> { /** * Initializes a new instance of the {@link NodeCollection `NodeCollection<TNode, TItem>`} class. * * @param owner * The owner of the collection. */ constructor(owner: TNode); /** * @inheritdoc * * @param child * The child whose parent to return. * * @returns * The parent of the {@link child `child`}. */ protected GetParent(child: TNode): INode<TItem>; /** * @inheritdoc * * @param child * The child whose parent is to be set. * * @param parent * The parent to set. */ protected SetParent(child: INode<TItem>, parent: TNode): void; }