Skip to content
Myr

docs: removed deprecation note on this, see #308

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

authored by Michel Weststrate · committed by Michel Weststrate · parent 3149a4d · Browse files · 2 files+38 added−3 removed
This commit

State

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

Trailers

  • docs: add example of an `immerable` class

Diff stats

2 files+38 added−3 removed

  • tests:+38 added−1 removed
  • other:+0 added−2 removed

2 files+38 added−3 removed

modified:__tests__/readme.js+38 added-1 removed
modified:readme.md-2 removed
614 unmodified lines
615**Note:** Immer v1.9+ supports Typescript v3.1+ only.616617## Using `this`618619_Deprecated, this will probably be removed in a next major version, see [#308](https://github.com/mweststrate/immer/issues/308)_620619The recipe will be always invoked with the `draft` as `this` context.620621This means that the following constructions are also valid:622
159 unmodified lines