Interface PeekableStack<T>

A Stack that supports peeking the back (top) element.

interface PeekableStack {
    back(options?): MaybePromise<undefined | T>;
    pop(options?): MaybePromise<undefined | T>;
    push(item, options?): unknown;
}

Type Parameters

  • T

Hierarchy

Methods

Methods

Generated using TypeDoc