diff --git a/index.d.ts b/index.d.ts index bac521a..3c69133 100644 --- a/index.d.ts +++ b/index.d.ts @@ -26,6 +26,12 @@ export interface ThunkDispatch< thunkAction: ThunkAction ): TReturnType; (action: A): A; + // This overload is the union of the two above (see TS issue #14107). + ( + action: + | TAction + | ThunkAction + ): TAction | TReturnType; } /**