From 0af2ba1b7d75a9b5bc85197af9aee01b79bb3606 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 25 May 2017 18:40:45 +0200 Subject: Move Provider type outside of namespace --- packages/web3-typescript-typings/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index 8b8c99e28..9fa688ba7 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -30,7 +30,7 @@ declare module 'web3' { getTransactionReceipt(txHash: string, callback: (err: Error, receipt: any) => void): void; }; - public setProvider(provider: providers.Provider): void; + public setProvider(provider: Provider): void; public currentProvider(): any; public fromWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber; public toWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber; @@ -65,9 +65,9 @@ declare module 'web3' { stopWatching(): void; } - namespace providers { - interface Provider {} + interface Provider {} + namespace providers { class HttpProvider implements Provider { constructor(url?: string); } -- cgit