Skip to content

Commit

Permalink
Add returntype for promisified action creators
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Jul 13, 2023
1 parent 209117a commit 3233c7f
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 3233c7f

Please sign in to comment.