mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-29 02:50:32 +00:00
WIP WIP WIP WIP WIP WIP: Remove trailing newlines WIP WIP WIP WIP WIP WIP WIP WIP: All tests pass WIP WIP WIP
17 lines
477 B
TypeScript
17 lines
477 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;
|