Skip to content

Commit

Permalink
fix: consistent recipe return type in produceWithPatches (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
mylesj authored May 11, 2022
1 parent 9f7623d commit 220d61d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/types-external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ export interface IProduceWithPatches {
): InferCurriedFromInitialStateAndRecipe<State, Recipe, true>
<Base, D = Draft<Base>>(
base: Base,
recipe: (draft: D) => ValidRecipeReturnType<Base>,
recipe: (draft: D) => ValidRecipeReturnType<D>,
listener?: PatchListener
): PatchesTuple<Base>
<Base, D = Draft<Base>>(
base: Base,
recipe: (draft: D) => Promise<ValidRecipeReturnType<Base>>,
recipe: (draft: D) => Promise<ValidRecipeReturnType<D>>,
listener?: PatchListener
): Promise<PatchesTuple<Base>>
}
Expand Down

0 comments on commit 220d61d

Please sign in to comment.