Skip to content
Prev Previous commit
Next Next commit
Add returntype for promisified action creators
  • Loading branch information
noahtallen committed Jul 20, 2023
commit 3046bf7b8d255cda06479ec9f90c2991dc39da05
2 changes: 1 addition & 1 deletion packages/data/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export type PromisifiedActionCreators<
// creator, so that consumers know that they are dealing with a Promise.
export type PromisifyActionCreator< Action extends ActionCreator > = (
...args: Parameters< Action >
) => Promise< void >;
) => Promise< ReturnType< Action > >;

type SelectorsOf< Config extends AnyConfig > = Config extends ReduxStoreConfig<
any,
Expand Down