mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Add typings for bitwise-xor
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
/// <reference path="bitwise-xor.d.ts" />
|
||||
|
||||
"use strict";
|
||||
|
||||
import xor = require("bitwise-xor");
|
||||
|
||||
var b: Buffer;
|
||||
|
||||
b = xor("a", "b");
|
||||
b = xor(new Buffer("a"), new Buffer("b"));
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// Type definitions for bitwise-xor 0.0.0
|
||||
// Project: https://github.com/czzarr/node-bitwise-xor
|
||||
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "bitwise-xor" {
|
||||
|
||||
/**
|
||||
* Bitwise XOR between two Buffers or Strings, returns a Buffer
|
||||
*/
|
||||
function xor(b1: Buffer, b2: Buffer): Buffer;
|
||||
function xor(s1: string, s2: string): Buffer;
|
||||
|
||||
export = xor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user