From 203d7a8d33c9ff9a42a61065888587394efee0a8 Mon Sep 17 00:00:00 2001 From: CodeAnimal Date: Thu, 18 Sep 2014 21:10:55 +0100 Subject: [PATCH] Add empty NodeBuffer interface The empty NodeBuffer interface acts as a placeholder if node's type definitions file isn't referenced. This is to hopefully stop the Travis CI build error. --- node-ip/ip-tests.ts | 2 +- node-ip/ip.d.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/node-ip/ip-tests.ts b/node-ip/ip-tests.ts index 0975361b5..b852e08e7 100644 --- a/node-ip/ip-tests.ts +++ b/node-ip/ip-tests.ts @@ -15,5 +15,5 @@ ip.loopback("ipv6"); ip.mask("192.168.0.1", "255.255.255.0"); ip.not("255.255.255.0"); ip.or("192.168.0.1", "255.255.255.0"); -var buff = ip.toBuffer(myIP); +var buff:any = ip.toBuffer(myIP); ip.toString(buff); \ No newline at end of file diff --git a/node-ip/ip.d.ts b/node-ip/ip.d.ts index 82c2755d7..2fe3201c7 100644 --- a/node-ip/ip.d.ts +++ b/node-ip/ip.d.ts @@ -3,6 +3,8 @@ // Definitions by: Peter Harris // Definitions: https://github.com/borisyankov/DefinitelyTyped +interface NodeBuffer { } + declare module "ip" { /** * Check two IP address are the same.