Skip to content
Myr

fix(ts): parameter types of curried producers

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

Fixes #288

authored by aleclarson · committed by aleclarson · parent f820657 · Browse files · 1 file+7 added−2 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+7 added−2 removed

  • other:+7 added−2 removed

1 file+7 added−2 removed

modified:src/immer.d.ts+7 added-2 removed
86 unmodified lines
87 recipe: (this: Proxy, draft: Proxy) => Return,88 listener?: PatchListener89 ): Produced<Base, Return>9091 /** Curried producer */91 /** Curried producer with a default value */92 <Default = any, Base = Default, Rest extends any[] = [], Return = void>(93 recipe: (94 this: Draft<Base>,95 draft: Draft<Base>,96 ...rest: Rest97 ) => Return,98 defaultBase?: Default98 defaultBase: Default99 ): (base: Base | undefined, ...rest: Rest) => Produced<Base, Return>100101 /** Curried producer with no default value */102 <Base = any, Rest extends any[] = [], Return = void>(103 recipe: (this: Draft<Base>, draft: Draft<Base>, ...rest: Rest) => Return104 ): (base: Base, ...rest: Rest) => Produced<Base, Return>105}106107export const produce: IProduce108export default produce
95 unmodified lines