aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/web3-typescript-typings/index.d.ts6
1 files changed, 3 insertions, 3 deletions
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);
}