PriorityQueue.d.ts 235 B

123456789101112
  1. import types = require('./types');
  2. declare class PriorityQueue {
  3. size: number;
  4. constructor(cmp?: types.AnyFn);
  5. clear(): void;
  6. enqueue(item: any): number;
  7. dequeue(): any;
  8. peek(): any;
  9. }
  10. export = PriorityQueue;