aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSergey Ukustov <sergey@ukstv.me>2017-07-19 03:53:46 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:34 +0800
commitda8db153beac5e33351ba93c9769a413d073f5fe (patch)
tree835348ccde727092c1acab9424771d487e077ea3 /packages
parent2c90f7324b786330efc3a24ceadbe1c81a256e97 (diff)
downloaddexon-sol-tools-da8db153beac5e33351ba93c9769a413d073f5fe.tar
dexon-sol-tools-da8db153beac5e33351ba93c9769a413d073f5fe.tar.gz
dexon-sol-tools-da8db153beac5e33351ba93c9769a413d073f5fe.tar.bz2
dexon-sol-tools-da8db153beac5e33351ba93c9769a413d073f5fe.tar.lz
dexon-sol-tools-da8db153beac5e33351ba93c9769a413d073f5fe.tar.xz
dexon-sol-tools-da8db153beac5e33351ba93c9769a413d073f5fe.tar.zst
dexon-sol-tools-da8db153beac5e33351ba93c9769a413d073f5fe.zip
Optional provider parameter in Web3 constructor
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/index.d.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index e7b05d8b0..6e1c2655c 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -5,6 +5,8 @@ declare module 'web3' {
class Web3 {
public static providers: typeof providers;
+ public constructor(provider?: Web3.Provider);
+
public version: {
getNetwork(cd: (err: Error, networkId: string) => void): void;
getNode(cd: (err: Error, nodeVersion: string) => void): void;