diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-11 03:13:15 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-11 03:13:15 +0800 |
commit | 4262ac3c8966468b343c6467e0e9da85ef25be05 (patch) | |
tree | bf57b46afd2967b72fc3cd6d5d11d8efa82fb3af /src/types.ts | |
parent | 76b66872d8f797ee3b0efe0fa2ca914cf44ee46c (diff) | |
download | dexon-0x-contracts-4262ac3c8966468b343c6467e0e9da85ef25be05.tar dexon-0x-contracts-4262ac3c8966468b343c6467e0e9da85ef25be05.tar.gz dexon-0x-contracts-4262ac3c8966468b343c6467e0e9da85ef25be05.tar.bz2 dexon-0x-contracts-4262ac3c8966468b343c6467e0e9da85ef25be05.tar.lz dexon-0x-contracts-4262ac3c8966468b343c6467e0e9da85ef25be05.tar.xz dexon-0x-contracts-4262ac3c8966468b343c6467e0e9da85ef25be05.tar.zst dexon-0x-contracts-4262ac3c8966468b343c6467e0e9da85ef25be05.zip |
Fix unhandled promise rejection error on subscriptions
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.ts b/src/types.ts index a9eac56d8..af3c36736 100644 --- a/src/types.ts +++ b/src/types.ts @@ -41,8 +41,8 @@ export type OrderValues = [BigNumber, BigNumber, BigNumber, export interface LogEvent<ArgsType> extends LogWithDecodedArgs<ArgsType> { removed: boolean; } -export type EventCallbackAsync<ArgsType> = (log: LogEvent<ArgsType>) => Promise<void>; -export type EventCallbackSync<ArgsType> = (log: LogEvent<ArgsType>) => void; +export type EventCallbackAsync<ArgsType> = (err: null|Error, log?: LogEvent<ArgsType>) => Promise<void>; +export type EventCallbackSync<ArgsType> = (err: null|Error, log?: LogEvent<ArgsType>) => void; export type EventCallback<ArgsType> = EventCallbackSync<ArgsType>|EventCallbackAsync<ArgsType>; export interface ExchangeContract extends Web3.ContractInstance { isValidSignature: { |