Skip to content

Commit e525c5a

Browse files
authored
fix type interface for iterable (#77)
1 parent c044606 commit e525c5a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/maxPriorityQueue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MaxHeap, IGetCompareValue } from '@datastructures-js/heap';
22

3-
export class MaxPriorityQueue<T> {
3+
export class MaxPriorityQueue<T> implements Iterable<T> {
44
constructor(getCompareValue?: IGetCompareValue<T>, heap?: MaxHeap<T>);
55
[Symbol.iterator](): Iterator<T, any, undefined>;
66
size(): number;

src/minPriorityQueue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MinHeap, IGetCompareValue } from '@datastructures-js/heap';
22

3-
export class MinPriorityQueue<T> {
3+
export class MinPriorityQueue<T> implements Iterable<T> {
44
constructor(getCompareValue?: IGetCompareValue<T>, heap?: MinHeap<T>);
55
[Symbol.iterator](): Iterator<T, any, undefined>;
66
size(): number;

src/priorityQueue.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ICompare } from '@datastructures-js/heap';
22

3-
export class PriorityQueue<T> {
3+
export class PriorityQueue<T> implements Iterable<T> {
44
constructor(compare: ICompare<T>, values?: T[]);
55
[Symbol.iterator](): Iterator<T, any, undefined>;
66
size(): number;

0 commit comments

Comments
 (0)