A definition of module "buffer-compare" has been added

This commit is contained in:
Ilya Mochalov
2015-11-29 05:23:51 +05:00
parent fb2b3b1e06
commit b9d1b538d5
2 changed files with 44 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
// 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;
}