diff --git a/src/core/immerClass.ts b/src/core/immerClass.ts index a2954a16..6975225c 100644 --- a/src/core/immerClass.ts +++ b/src/core/immerClass.ts @@ -185,7 +185,7 @@ export class Immer implements ProducersFns { this.useProxies_ = value } - applyPatches(base: Objectish, patches: Patch[]): T { + applyPatches(base: T, patches: Patch[]): T { // If a patch replaces the entire state, take that replacement as base // before applying patches let i: number