currentState: S,
recipe: (this: S, draftState: S) => void
): S
// curried invocations
export default function<S = any, A = any, B = any, C = any>(
recipe: (this: S, draftState: S, a: A, b: B, c: C) => void
): (currentState: S, a: A, b: B, c: C) => S
export default function<S = any, A = any, B = any>(
recipe: (this: S, draftState: S, a: A, b: B) => void
): (currentState: S, a: A, b: B) => S
export default function<S = any, A = any>(
recipe: (this: S, draftState: S, a: A) => void
): (currentState: S) => S
export default function<S = any>(
recipe: (this: S, draftState: S, ...extraArgs: any[]) => void
): (currentState: S, ...extraArgs: any[]) => S
export default function<S = any, A = any>(
recipe: (this: S, draftState: S, a: A) => void
): (currentState: S, a: A) => S
export default function<S = any, A = any, B = any>(
recipe: (this: S, draftState: S, a: A, b: B) => void
): (currentState: S, a: A, b: B) => S
export default function<S = any, A = any, B = any, C = any>(
recipe: (this: S, draftState: S, a: A, b: B, c: C) => void
): (currentState: S, a: A, b: B, c: C) => S
/**
* Automatically freezes any state trees generated by immer.
* This protects against accidental modifications of the state tree outside of an immer function.