// Type definitions for compare-function 2.0 // Project: https://github.com/michaelrhodes/compare-function // Definitions by: Wolfgang Faust // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function compare(fn: (item: T) => any): (a: T, b: T) => -1 | 0 | 1; declare function compare(sign: number, fn: (item: T) => any): (a: T, b: T) => -1 | 0 | 1; export = compare;