aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-26 00:40:45 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:32 +0800
commit0af2ba1b7d75a9b5bc85197af9aee01b79bb3606 (patch)
treed6d36e64619b86151dc9a14dd928ab3bb9fe901f /packages
parentea2fdecb8361b08032b85be2f7be7cb9aa970b30 (diff)
downloaddexon-0x-contracts-0af2ba1b7d75a9b5bc85197af9aee01b79bb3606.tar
dexon-0x-contracts-0af2ba1b7d75a9b5bc85197af9aee01b79bb3606.tar.gz
dexon-0x-contracts-0af2ba1b7d75a9b5bc85197af9aee01b79bb3606.tar.bz2
dexon-0x-contracts-0af2ba1b7d75a9b5bc85197af9aee01b79bb3606.tar.lz
dexon-0x-contracts-0af2ba1b7d75a9b5bc85197af9aee01b79bb3606.tar.xz
dexon-0x-contracts-0af2ba1b7d75a9b5bc85197af9aee01b79bb3606.tar.zst
dexon-0x-contracts-0af2ba1b7d75a9b5bc85197af9aee01b79bb3606.zip
Move Provider type outside of namespace
Diffstat (limited to 'packages')
-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);
}