Skip to content
Myr

docs: fix typo will -> well (#778)

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

authored by Kirill Cherkashin · committed by GitHub · parent 0af1143 · Browse files · 1 file+2 added−3 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+2 added−3 removed

  • other:+2 added−3 removed

1 file+2 added−3 removed

modified:website/docs/typescript.mdx+2 added-3 removed
8 unmodified lines
9 data-ea-publisher="immerjs"10 data-ea-type="image"11 className="horizontal bordered"12 ></div>13</center>14<details>13</center> <details>14 <summary className="egghead-summary">15 egghead.io lesson 12: Immer + TypeScript16 </summary>17 <br />
46 unmodified lines
643. Immer won't automatically wrap all returned types in `Immutable` if the original type of the input state wasn't immutable. This is to make sure it doesn't break code bases that don't use immutable types.6566## Tips for curried producers6769We try to inference as much as possible. So if a curried producer is created and directly passed to another function, we can infer the type from there. This works will with for example React:68We try to inference as much as possible. So if a curried producer is created and directly passed to another function, we can infer the type from there. This works well with for example React:6970```typescript71import {Immutable, produce} from "immer"72
138 unmodified lines