Skip to content
Myr

fix(ts): improve IProduce

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

- infer the base type properly - infer the return type properly - ensure `nothing` can be distinguished from `undefined` - allow rest arguments for curried producer w/o initial state Fixes #273 Fixes #274 Fixes #275

authored by aleclarson · committed by Alec Larson · parent fa5bf5d · Browse files · 1 file+29 added−18 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+29 added−18 removed

  • other:+29 added−18 removed

1 file+29 added−18 removed

modified:src/immer.d.ts+29 added-18 removed