UNPKG

typescript-algorithms-and-datastructures

Version:
14 lines (13 loc) 380 B
import { ITypedArray } from "./ITypedArray"; export declare class TypedQueue { protected queue: ITypedArray; protected head: number; protected tail: number; protected memoryLength: number; constructor(queue: ITypedArray); enqueue(element: number): void; dequeue(): number; isEmpty(): boolean; peek(): number; size(): number; }