Skip to content
Myr

chore: fixed jsdoc parameter name (#994)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christopher Tran · committed by GitHub · parent 9372eca · Browse files · 1 file+2 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−5 removed

  • other:+2 added−5 removed

1 file+2 added−5 removed

modified:src/core/immerClass.ts+2 added-5 removed
57 unmodified lines
58 *59 * Note: This function is __bound__ to its `Immer` instance.60 *61 * @param {any} base - the initial state62 * @param {Function} producer - function that receives a proxy of the base state as first argument and which can be freely modified62 * @param {Function} recipe - function that receives a proxy of the base state as first argument and which can be freely modified63 * @param {Function} patchListener - optional function that will be called with all the patches produced here64 * @returns {any} a new state, or the initial state if nothing was modified65 */66 produce: IProduce = (base: any, recipe?: any, patchListener?: any) => {
59 unmodified lines
126 return result127 } else die(21, base)128 }129130 produceWithPatches: IProduceWithPatches = (131 base: any,132 recipe?: any,133 ): any => {130 produceWithPatches: IProduceWithPatches = (base: any, recipe?: any): any => {131 // curried invocation132 if (typeof base === "function") {133 return (state: any, ...args: any[]) =>134 this.produceWithPatches(state, (draft: any) => base(draft, ...args))
107 unmodified lines