mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
431 B
TypeScript
9 lines
431 B
TypeScript
// Type definitions for compare-function 2.0
|
|
// Project: https://github.com/michaelrhodes/compare-function
|
|
// Definitions by: Wolfgang Faust <https://github.com/wolfgang42>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare function compare<T>(fn: (item: T) => any): (a: T, b: T) => -1 | 0 | 1;
|
|
declare function compare<T>(sign: number, fn: (item: T) => any): (a: T, b: T) => -1 | 0 | 1;
|
|
export = compare;
|