From da8db153beac5e33351ba93c9769a413d073f5fe Mon Sep 17 00:00:00 2001 From: Sergey Ukustov Date: Tue, 18 Jul 2017 22:53:46 +0300 Subject: Optional provider parameter in Web3 constructor --- packages/web3-typescript-typings/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3