Skip to content

Commit

Permalink
fix(types): ensure mutationOutput is the awaited result everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
uladkasach committed Aug 1, 2023
1 parent 40c6567 commit 173e1eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/RemoteStateQueryCachingOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface RemoteStateQueryInvalidationTrigger<Q extends (...args: any) =>
* note
* - this may be null if the mutation threw an error
*/
mutationOutput: ReturnType<M> | null;
mutationOutput: Awaited<ReturnType<M>> | null;
/**
* the status of the execution
*/
Expand Down Expand Up @@ -101,7 +101,7 @@ export interface RemoteStateQueryUpdateTrigger<Q extends (...args: any) => any,
* note
* - this may be null if the mutation threw an error
*/
mutationOutput: ReturnType<M> | null;
mutationOutput: Awaited<ReturnType<M>> | null;
/**
* the status of the execution
*/
Expand Down

0 comments on commit 173e1eb

Please sign in to comment.