Skip to content
Myr

fix: produceWithPatches should not wrap result in Immutable, fixes #850, #881

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Michel Weststrate · committed by Michel Weststrate · parent feba5d1 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/types/types-external.ts+2 added-2 removed
241 unmodified lines
242 <Base, D = Draft<Base>>(243 base: Base,244 recipe: (draft: D) => ValidRecipeReturnType<Base>,245 listener?: PatchListener246 ): PatchesTuple<Immutable<Base>>246 ): PatchesTuple<Base>247 <Base, D = Draft<Base>>(248 base: Base,249 recipe: (draft: D) => Promise<ValidRecipeReturnType<Base>>,250 listener?: PatchListener251 ): PatchesTuple<Promise<Immutable<Base>>>251 ): PatchesTuple<Promise<Base>>252}253254// Fixes #507: bili doesn't export the types of this file if there is no actual source in it..255// hopefully it get's tree-shaken away for everyone :)
1 unmodified line