Skip to content

Commit

Permalink
fix: produceWithPatches should not wrap result in Immutable, fixes #850
Browse files Browse the repository at this point in the history
…, #881
  • Loading branch information
mweststrate committed Jan 11, 2022
1 parent feba5d1 commit d8f2636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/types-external.ts
Expand Up @@ -243,12 +243,12 @@ export interface IProduceWithPatches {
base: Base,
recipe: (draft: D) => ValidRecipeReturnType<Base>,
listener?: PatchListener
): PatchesTuple<Immutable<Base>>
): PatchesTuple<Base>
<Base, D = Draft<Base>>(
base: Base,
recipe: (draft: D) => Promise<ValidRecipeReturnType<Base>>,
listener?: PatchListener
): PatchesTuple<Promise<Immutable<Base>>>
): PatchesTuple<Promise<Base>>
}

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

0 comments on commit d8f2636

Please sign in to comment.