DefinitelyTyped/types/buffer-compare/index.d.ts
2017-03-24 14:27:52 -07:00

17 lines
476 B
TypeScript

// Type definitions for buffer-compare
// Project: https://github.com/soldair/node-buffer-compare
// Definitions by: Ilya Mochalov <https://github.com/chrootsu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface List {
[index: number]: any;
length: number
}
declare function compare(cmp: List, to: List): number;
declare function compare<T>(cmp: T, to: T): number;
declare function compare<C, T>(cmp: C, to: T): number;
export = compare;