From 7894ba364c75425eb11ef6dfb70bc1360147554e Mon Sep 17 00:00:00 2001 From: Myles J Date: Thu, 5 May 2022 08:26:31 +0100 Subject: [PATCH] fix: consistent recipe return type in produceWithPatches --- src/types/types-external.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/types-external.ts b/src/types/types-external.ts index 08ccbea9..06528b2e 100644 --- a/src/types/types-external.ts +++ b/src/types/types-external.ts @@ -241,12 +241,12 @@ export interface IProduceWithPatches { ): InferCurriedFromInitialStateAndRecipe >( base: Base, - recipe: (draft: D) => ValidRecipeReturnType, + recipe: (draft: D) => ValidRecipeReturnType, listener?: PatchListener ): PatchesTuple >( base: Base, - recipe: (draft: D) => Promise>, + recipe: (draft: D) => Promise>, listener?: PatchListener ): PatchesTuple> }