aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorgagarin55 <gagarin55@protonmail.com>2018-02-14 21:18:49 +0800
committergagarin55 <gagarin55@protonmail.com>2018-02-14 21:18:49 +0800
commit5927e65045d97baf6c4f05c6973785f6b1e0a22d (patch)
tree81206ff8ce3f46da3e3ae03ffae3cb61018c5f53 /packages
parent13e2041d50d682128ffa903a7dd4bd1f6d5e928c (diff)
downloaddexon-sol-tools-5927e65045d97baf6c4f05c6973785f6b1e0a22d.tar.gz
dexon-sol-tools-5927e65045d97baf6c4f05c6973785f6b1e0a22d.tar.zst
dexon-sol-tools-5927e65045d97baf6c4f05c6973785f6b1e0a22d.zip
web3 typings fix - web3.net.peerCount returns number
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/index.d.ts2
1 files changed, 1 insertions, 1 deletions
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;
}