diff options
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index 9fa688ba7..a05a3d809 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -37,12 +37,12 @@ declare module 'web3' { public isAddress(address: string): boolean; } - interface AbiIOParameter { + export interface AbiIOParameter { name: string; type: string; } - interface AbiDefinition { + export interface AbiDefinition { constants: boolean; inputs: AbiIOParameter[]; name: string; @@ -50,22 +50,22 @@ declare module 'web3' { type: string; } - interface Contract {} + export interface Contract {} - interface FilterObject { + export interface FilterObject { fromBlock: number|string; toBlock: number|string; address: string; topics: string[]; } - interface FilterResult { + export interface FilterResult { get(callback: () => void): void; watch(callback: () => void): void; stopWatching(): void; } - interface Provider {} + export interface Provider {} namespace providers { class HttpProvider implements Provider { @@ -74,5 +74,7 @@ declare module 'web3' { } namespace Web3 {} // Empty module so the class is exportable as a module - export = Web3; + /* tslint:disable */ + export default Web3; + /* tslint:enable */ } |