You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The state returned by produceWithPatches((draft: Draft<N>, m: number) => { ... }) is of type WritableDraft<N> but should be of type N.
The type of produceWithPatches<N, [number]>((draft, m) => { ... }) is never while the type of produce<N, [number]>((draft, m) => { ... }) is as expected.
Expected behavior
The types of the values returned by produceWithPatches should be the same as produce.
Environment
Immer version: 10.0.1
I filed this report against the latest version of Immer
Activity
fix: correct curried produceWithPatches return type (immerjs#1249)