diff options
-rw-r--r-- | src/types.ts | 6 |
1 files 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<void>; +export type OnOrderStateChangeCallback = OnOrderStateChangeCallbackAsync|OnOrderStateChangeCallbackSync; |