Skip to content

Commit

Permalink
Making comparator definition less strict (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
FTWinston authored and mourner committed Apr 5, 2019
1 parent bb565b3 commit e35d053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export declare type Item = any;
export declare type Comparator<Item> = (a: Item, b: Item) => -1 | 0 | 1;
export declare type Comparator<Item> = (a: Item, b: Item) => number;

export default class TinyQueue<Item> {
public data : Item[];
Expand Down

0 comments on commit e35d053

Please sign in to comment.