File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,20 @@ export interface IProduce {
88
88
listener ?: PatchListener
89
89
) : Produced < Base , Return >
90
90
91
- /** Curried producer */
91
+ /** Curried producer with a default value */
92
92
< Default = any , Base = Default , Rest extends any [ ] = [ ] , Return = void > (
93
93
recipe : (
94
94
this : Draft < Base > ,
95
95
draft : Draft < Base > ,
96
96
...rest : Rest
97
97
) => Return ,
98
- defaultBase ? : Default
98
+ defaultBase : Default
99
99
) : ( base : Base | undefined , ...rest : Rest ) => Produced < Base , Return >
100
+
101
+ /** Curried producer with no default value */
102
+ < Base = any , Rest extends any [ ] = [ ] , Return = void > (
103
+ recipe : ( this : Draft < Base > , draft : Draft < Base > , ...rest : Rest ) => Return
104
+ ) : ( base : Base , ...rest : Rest ) => Produced < Base , Return >
100
105
}
101
106
102
107
export const produce : IProduce
You can’t perform that action at this time.
0 commit comments