From 209ca3046058e51ffc301737564029de5511967e Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 15 Jun 2017 17:27:21 +0200 Subject: Add explaining comment for the web3Provider type --- src/types.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/types.ts') diff --git a/src/types.ts b/src/types.ts index 8c9e9ad5d..5be64da53 100644 --- a/src/types.ts +++ b/src/types.ts @@ -281,5 +281,9 @@ export interface ContractEventEmitter { watch: (eventCallback: EventCallback) => void; stopWatchingAsync: () => Promise; } - +/** + * We re-export the `Web3.Provider` type specified in the Web3 Typescript typings + * since it is the type of the `provider` argument to the `ZeroEx` constructor. + * It is however a `Web3` library type, not a native `0x.js` type. + */ export type Web3Provider = Web3.Provider; -- cgit v1.2.3