cefn / lauf

Monorepo for lauf packages.
MIT License
5 stars 0 forks source link

Remove explicit Immutable declaration from examples #135

Open cefn opened 3 years ago

cefn commented 3 years ago

In the @lauf/store examples it's common to see an explicit declaration like Immutable<AppState> but which is unnecessary when already using as const, and indeed would work even without as const.

Probably best to remove this as there are circumstances where Readonly<Readonly<T>> creates problematic situations when only one level of Readonly is removed and the remaining item is not an editable draft.