Skip to content

Commit 20343c3

Browse files
jedmaotimdorr
authored andcommitted
fix: extraThunkArgument types (#260)
1 parent 237f6bb commit 20343c3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.d.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,13 @@ export type ThunkMiddleware<
8989
>;
9090

9191
declare const thunk: ThunkMiddleware & {
92-
withExtraArgument<TExtraThunkArg>(
92+
withExtraArgument<
93+
TExtraThunkArg,
94+
TState = {},
95+
TBasicAction extends Action<any> = AnyAction
96+
>(
9397
extraArgument: TExtraThunkArg
94-
): ThunkMiddleware<{}, AnyAction, TExtraThunkArg>;
98+
): ThunkMiddleware<TState, TBasicAction, TExtraThunkArg>;
9599
};
96100

97101
export default thunk;

0 commit comments

Comments
 (0)