aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-02-15 02:19:48 +0800
committerGitHub <noreply@github.com>2018-02-15 02:19:48 +0800
commit91ae01e48456d3e8c857c47b95f01c3e3cef00c6 (patch)
tree81206ff8ce3f46da3e3ae03ffae3cb61018c5f53
parent13e2041d50d682128ffa903a7dd4bd1f6d5e928c (diff)
parent5927e65045d97baf6c4f05c6973785f6b1e0a22d (diff)
downloaddexon-sol-tools-91ae01e48456d3e8c857c47b95f01c3e3cef00c6.tar
dexon-sol-tools-91ae01e48456d3e8c857c47b95f01c3e3cef00c6.tar.gz
dexon-sol-tools-91ae01e48456d3e8c857c47b95f01c3e3cef00c6.tar.bz2
dexon-sol-tools-91ae01e48456d3e8c857c47b95f01c3e3cef00c6.tar.lz
dexon-sol-tools-91ae01e48456d3e8c857c47b95f01c3e3cef00c6.tar.xz
dexon-sol-tools-91ae01e48456d3e8c857c47b95f01c3e3cef00c6.tar.zst
dexon-sol-tools-91ae01e48456d3e8c857c47b95f01c3e3cef00c6.zip
Merge pull request #397 from gagarin55/typings-fix
web3-typescript-typings fix - web3.net.peerCount returns number
-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;
}