Skip to content

Commit

Permalink
added definitions for buffer-equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartvds committed Mar 31, 2014
1 parent f5f60a4 commit f730d12
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions buffer-equal/buffer-equal-tests.ts
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions buffer-equal/buffer-equal.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit f730d12

Please sign in to comment.