added definitions for buffer-equal

This commit is contained in:
Bart van der Schoor
2014-04-01 01:28:38 +02:00
parent f5f60a4cb3
commit f730d125d0
2 changed files with 19 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
/// <reference path="buffer-equal.d.ts" />
import bufferEqual = require('buffer-equal');
var bool: boolean;
var buf: NodeBuffer;
bool = bufferEqual(buf, buf);
+11
View File
@@ -0,0 +1,11 @@
// Type definitions for buffer-equal 1.0 0
// Project: https://github.com/chaijs/assertion-error
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module 'buffer-equal' {
function bufferEqual(actual:NodeBuffer, expected:NodeBuffer): boolean;
export = bufferEqual;
}