Skip to content

Commit e35d053

Browse files
FTWinstonmourner
authored andcommitted
Making comparator definition less strict (#16)
1 parent bb565b3 commit e35d053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export declare type Item = any;
2-
export declare type Comparator<Item> = (a: Item, b: Item) => -1 | 0 | 1;
2+
export declare type Comparator<Item> = (a: Item, b: Item) => number;
33

44
export default class TinyQueue<Item> {
55
public data : Item[];

0 commit comments

Comments
 (0)