projecte_ionic/node_modules/@angular-devkit/core/src/utils/priority-queue.d.ts
2022-02-09 18:30:03 +01:00

20 lines
550 B
TypeScript
Executable file

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/** Naive priority queue; not intended for large datasets */
export declare class PriorityQueue<T> {
private _comparator;
private _items;
constructor(_comparator: (x: T, y: T) => number);
clear(): void;
push(item: T): void;
pop(): T | undefined;
peek(): T | undefined;
get size(): number;
toArray(): Array<T>;
}