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
By nested DeepImmutable or directly passing ReadonlyArray and ReadonlyMap to DeepImmutable and Immutable types results in DeepImmutableObject<ReadonlyArray> and DeepImmutableObject<ReadonlyMap> which should be neutralized by the type itself.
## [1.4.1](v1.4.0...v1.4.1) (2019-06-09)
### Bug Fixes
* infer return type of reducer from return type of handlers ([6b6edaa](6b6edaa)), closes [#55](#55)
* nested DeepImmutable and Immutable types neutralization ([d3f9a1a](d3f9a1a)), closes [#65](#65)
Summary
By nested
DeepImmutable
or directly passingReadonlyArray
andReadonlyMap
toDeepImmutable
andImmutable
types results inDeepImmutableObject<ReadonlyArray>
andDeepImmutableObject<ReadonlyMap>
which should be neutralized by the type itself.Steps to reproduce
For
ReadonlyArray
:For
ReadonlyMap
:Expected result(s)
For
ReadonlyArray
:For
ReadonlyMap
:Actual result(s)
For
ReadonlyArray
:For
ReadonlyMap
:Solution
Add conditions to check
ReadonlyArray
andReadonlyMap
inDeepImmutable
andImmutable
types.The text was updated successfully, but these errors were encountered: