From d8f26362a9ff1ca7385943ce0b4cb49e9530edaf Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Tue, 11 Jan 2022 13:26:05 +0000 Subject: [PATCH] fix: produceWithPatches should not wrap result in Immutable, fixes #850, #881 --- 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 7cb01a76..08ccbea9 100644 --- a/src/types/types-external.ts +++ b/src/types/types-external.ts @@ -243,12 +243,12 @@ export interface IProduceWithPatches { base: Base, recipe: (draft: D) => ValidRecipeReturnType, listener?: PatchListener - ): PatchesTuple> + ): PatchesTuple >( base: Base, recipe: (draft: D) => Promise>, listener?: PatchListener - ): PatchesTuple>> + ): PatchesTuple> } // Fixes #507: bili doesn't export the types of this file if there is no actual source in it..