Skip to content

Commit

Permalink
Merge pull request #4337 from jared-ca/undefined-type-initiate-mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored May 9, 2024
2 parents 5d77624 + 6aea6c8 commit c892abd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/toolkit/src/query/core/buildInitiate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ type StartMutationActionCreator<
export type MutationActionCreatorResult<
D extends MutationDefinition<any, any, any, any>,
> = SafePromise<
| { data: ResultTypeFrom<D> }
| {
data: ResultTypeFrom<D>
error?: undefined
}
| {
data?: undefined
error:
| Exclude<
BaseQueryError<
Expand Down

0 comments on commit c892abd

Please sign in to comment.