Skip to content
Prev Previous commit
Make comment less redundant
  • Loading branch information
noahtallen committed Jul 20, 2023
commit 8cbdc88b247ff56fddc2d5f0b8e0d6855760248d
4 changes: 1 addition & 3 deletions packages/data/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ export type PromisifiedActionCreators<
>;
};

// Wraps action creator return types with a Promise -- also handles thunks by
// extracting the return type of the inner function of the thunk's action creator,
// and by accounting for thunks that return a Promise.
// Wraps action creator return types with a Promise and handles thunks.
export type PromisifyActionCreator< Action extends ActionCreator > = (
...args: Parameters< Action >
) => Promise<
Expand Down