Skip to content

Commit

Permalink
refactor(heaps): public fields
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Oct 18, 2018
1 parent 0cf708f commit f7bbfde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/heaps/src/heap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export class Heap<T> implements
return idx >= 0 ? (idx << 1) + 1 : -1;
}

protected values: T[];
protected compare: Comparator<T>;
values: T[];
compare: Comparator<T>;

constructor(values?: Iterable<T>, opts?: HeapOpts<T>) {
opts = Object.assign({ compare: compare }, opts);
Expand Down

0 comments on commit f7bbfde

Please sign in to comment.