Skip to content

Commit

Permalink
chore: fixed jsdoc parameter name (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfftdammitchris authored Jan 2, 2023
1 parent 9372eca commit 8a02d81
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/core/immerClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class Immer implements ProducersFns {
* Note: This function is __bound__ to its `Immer` instance.
*
* @param {any} base - the initial state
* @param {Function} producer - function that receives a proxy of the base state as first argument and which can be freely modified
* @param {Function} recipe - function that receives a proxy of the base state as first argument and which can be freely modified
* @param {Function} patchListener - optional function that will be called with all the patches produced here
* @returns {any} a new state, or the initial state if nothing was modified
*/
Expand Down Expand Up @@ -127,10 +127,7 @@ export class Immer implements ProducersFns {
} else die(21, base)
}

produceWithPatches: IProduceWithPatches = (
base: any,
recipe?: any,
): any => {
produceWithPatches: IProduceWithPatches = (base: any, recipe?: any): any => {
// curried invocation
if (typeof base === "function") {
return (state: any, ...args: any[]) =>
Expand Down

0 comments on commit 8a02d81

Please sign in to comment.