stack.d.ts 403 B

123456789101112
  1. export declare abstract class StackElement<Node> {
  2. abstract push(node: Node, ...rest: Node[]): void;
  3. }
  4. export declare class Stack<Node, Element extends StackElement<Node>> {
  5. protected elements: Element[];
  6. size: () => number;
  7. top: () => Element | undefined;
  8. push: (node: Node) => void;
  9. open: (node: Element) => void;
  10. close: () => Element;
  11. }
  12. //# sourceMappingURL=stack.d.ts.map