You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason the definition of Editor as consuming a Draft<Immutable<T>>, (where Draft from Immer was intended to undo the Immutable mapping), leads to problems for indexed object structures.
An example error reads like...
Type 'Evidenced' cannot be used to index type 'Draft<{ [k in Evidenced]: boolean; }>
For some reason the definition of Editor as consuming a
Draft<Immutable<T>>
, (whereDraft
from Immer was intended to undo theImmutable
mapping), leads to problems for indexed object structures.An example error reads like...
Type 'Evidenced' cannot be used to index type 'Draft<{ [k in Evidenced]: boolean; }>
Changing the definition of Editor like this...
...should address some issues.
Incidentally this remnant from the use of Immer's castDraft is still in the documentation, which is a mistake.
The text was updated successfully, but these errors were encountered: