We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1fac9d commit 09ac097Copy full SHA for 09ac097
src/core/immerClass.ts
@@ -185,7 +185,7 @@ export class Immer implements ProducersFns {
185
this.useProxies_ = value
186
}
187
188
- applyPatches<T extends Objectish>(base: Objectish, patches: Patch[]): T {
+ applyPatches<T extends Objectish>(base: T, patches: Patch[]): T {
189
// If a patch replaces the entire state, take that replacement as base
190
// before applying patches
191
let i: number
0 commit comments