import { Node } from "./node"; export class StackNode extends Node { /** * Returns a reference to the next node in the stack. */ public next?: Node; /** * Represents a node in a stack. It exposes a `next` link * to traverse the stack. * * @param value The value of the element. */ constructor(value: T) { super(value); } }