mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
485 B
TypeScript
18 lines
485 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/borisyankov/DefinitelyTyped
|
|
|
|
declare module "buffer-compare" {
|
|
interface List {
|
|
[index: number]: any;
|
|
length: number
|
|
}
|
|
|
|
function compare(cmp: List, to: List): number;
|
|
function compare<T>(cmp: T, to: T): number;
|
|
function compare<C, T>(cmp: C, to: T): number;
|
|
|
|
export = compare;
|
|
}
|