We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb565b3 commit e35d053Copy full SHA for e35d053
index.d.ts
@@ -1,5 +1,5 @@
1
export declare type Item = any;
2
-export declare type Comparator<Item> = (a: Item, b: Item) => -1 | 0 | 1;
+export declare type Comparator<Item> = (a: Item, b: Item) => number;
3
4
export default class TinyQueue<Item> {
5
public data : Item[];
0 commit comments