A double-ended queue.

interface Deque {
    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

Methods

Generated using TypeDoc