Interface PeekableDeque<T>

A Deque that supports peeking the front/back elements.

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

Type Parameters

  • T

Hierarchy

Implemented by

Methods

Generated using TypeDoc