Add explaining comment for the web3Provider type

This commit is contained in:
Leonid Logvinov
2017-06-15 17:27:21 +02:00
parent d789aa24aa
commit 209ca30460

View File

@@ -281,5 +281,9 @@ export interface ContractEventEmitter {
watch: (eventCallback: EventCallback) => void;
stopWatchingAsync: () => Promise<void>;
}
/**
* 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;