Function: produce()
ts
function produce<T>(base, recipe): T;Defined in: client/draft.ts:32
The state recipe makes of base, with base left as it was. If the recipe changes nothing, the result is base itself.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
base | T |
recipe | (draft) => void |
Returns
T