aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-26 00:48:57 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:32 +0800
commit15b5fcbaf99e756b666b477e1a710f410dd7bc9c (patch)
tree8d50aee475f6c2390a9dcd2970d7a6474234a444
parent0718b0d5b030edddbea17580adeb929c2e6365eb (diff)
downloaddexon-sol-tools-15b5fcbaf99e756b666b477e1a710f410dd7bc9c.tar
dexon-sol-tools-15b5fcbaf99e756b666b477e1a710f410dd7bc9c.tar.gz
dexon-sol-tools-15b5fcbaf99e756b666b477e1a710f410dd7bc9c.tar.bz2
dexon-sol-tools-15b5fcbaf99e756b666b477e1a710f410dd7bc9c.tar.lz
dexon-sol-tools-15b5fcbaf99e756b666b477e1a710f410dd7bc9c.tar.xz
dexon-sol-tools-15b5fcbaf99e756b666b477e1a710f410dd7bc9c.tar.zst
dexon-sol-tools-15b5fcbaf99e756b666b477e1a710f410dd7bc9c.zip
Export all interfaces and export the web3 constructor as the default export
-rw-r--r--packages/web3-typescript-typings/index.d.ts16
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 */
}