From 5927e65045d97baf6c4f05c6973785f6b1e0a22d Mon Sep 17 00:00:00 2001 From: gagarin55 Date: Wed, 14 Feb 2018 16:18:49 +0300 Subject: web3 typings fix - web3.net.peerCount returns number --- packages/web3-typescript-typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index cd34759ed..915c73b90 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -298,7 +298,7 @@ declare module 'web3' { interface NetApi { listening: boolean; - peerCount: boolean; + peerCount: number; getListening(cd: (err: Error, listening: boolean) => void): void; getPeerCount(cd: (err: Error, peerCount: number) => void): void; } -- cgit v1.2.3