From d61f34ec125884ff1c17f41dbc8c844b866390f5 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Sat, 11 Nov 2017 10:21:59 -0500 Subject: Declare OnOrderStateChangeCallback as either sync or async --- src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index 13867dac8..411ff3bfd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -508,6 +508,6 @@ export interface OrderStateInvalid { export type OrderState = OrderStateValid|OrderStateInvalid; -export type OnOrderStateChangeCallback = ( - orderState: OrderState, -) => void; +export type OnOrderStateChangeCallbackSync = (orderState: OrderState) => void; +export type OnOrderStateChangeCallbackAsync = (orderState: OrderState) => Promise; +export type OnOrderStateChangeCallback = OnOrderStateChangeCallbackAsync|OnOrderStateChangeCallbackSync; -- cgit