From 220d61d47fea7fae24c794f14dc529bcd7b46249 Mon Sep 17 00:00:00 2001 From: Myles J Date: Wed, 11 May 2022 18:42:15 +0100 Subject: [PATCH] fix: consistent recipe return type in produceWithPatches (#934) --- 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 934a70e4..d9cf27f3 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 ): Promise> }