mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
added definitions for buffer-equal
This commit is contained in:
@@ -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);
|
||||
Vendored
+11
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user