Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/maxPriorityQueue.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MaxHeap, IGetCompareValue } from '@datastructures-js/heap';

export class MaxPriorityQueue<T> {
export class MaxPriorityQueue<T> implements Iterable<T> {
constructor(getCompareValue?: IGetCompareValue<T>, heap?: MaxHeap<T>);
[Symbol.iterator](): Iterator<T, any, undefined>;
size(): number;
Expand Down
2 changes: 1 addition & 1 deletion src/minPriorityQueue.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { MinHeap, IGetCompareValue } from '@datastructures-js/heap';

export class MinPriorityQueue<T> {
export class MinPriorityQueue<T> implements Iterable<T> {
constructor(getCompareValue?: IGetCompareValue<T>, heap?: MinHeap<T>);
[Symbol.iterator](): Iterator<T, any, undefined>;
size(): number;
Expand Down
2 changes: 1 addition & 1 deletion src/priorityQueue.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ICompare } from '@datastructures-js/heap';

export class PriorityQueue<T> {
export class PriorityQueue<T> implements Iterable<T> {
constructor(compare: ICompare<T>, values?: T[]);
[Symbol.iterator](): Iterator<T, any, undefined>;
size(): number;
Expand Down