From 07eb25008375ef3bc40af9475b02683b612a39d1 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 24 May 2017 17:42:47 +0200 Subject: Allow numbers to also be passed to fromWei and toWei --- packages/web3-typescript-typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index bcb5dc575..8b8c99e28 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -32,8 +32,8 @@ declare module 'web3' { public setProvider(provider: providers.Provider): void; public currentProvider(): any; - public fromWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber; - public toWei(amount: BigNumber.BigNumber, unit: string): BigNumber.BigNumber; + public fromWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber; + public toWei(amount: number|BigNumber.BigNumber, unit: string): BigNumber.BigNumber; public isAddress(address: string): boolean; } -- cgit v1.2.3