Installation
npm install --save @types/priorityqueuejs
Summary
This package contains type definitions for priorityqueuejs (https://github.com/janogonzalez/priorityqueuejs).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/priorityqueuejs.
declare class PriorityQueue<T> {
static DEFAULT_COMPARATOR: PriorityQueue.Comparator<number | string>;
constructor();
constructor(comparator: PriorityQueue.Comparator<T>);
deq(): T;
enq(element: T): number;
forEach(fn: (value: T, index: number, array: T[]) => void): void;
isEmpty(): boolean;
peek(): T;
size(): number;
}
declare namespace PriorityQueue {
export interface Comparator<T> {
(a: T, b: T): number;
}
}
export = PriorityQueue;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Joshua DeVinney.