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.