Skip to content

Commit d8f2636

Browse files
committed
fix: produceWithPatches should not wrap result in Immutable, fixes #850, #881
1 parent feba5d1 commit d8f2636

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/types/types-external.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ export interface IProduceWithPatches {
243243
base: Base,
244244
recipe: (draft: D) => ValidRecipeReturnType<Base>,
245245
listener?: PatchListener
246-
): PatchesTuple<Immutable<Base>>
246+
): PatchesTuple<Base>
247247
<Base, D = Draft<Base>>(
248248
base: Base,
249249
recipe: (draft: D) => Promise<ValidRecipeReturnType<Base>>,
250250
listener?: PatchListener
251-
): PatchesTuple<Promise<Immutable<Base>>>
251+
): PatchesTuple<Promise<Base>>
252252
}
253253

254254
// Fixes #507: bili doesn't export the types of this file if there is no actual source in it..

0 commit comments

Comments
 (0)