rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.36k stars 194 forks source link

[types] Mixin not applied to nested objects #261

Closed RMHonor closed 5 years ago

RMHonor commented 5 years ago

Immutable functions are only typed for the top level object, so casting is required for deep object properties.

Have submitted a corresponding PR to @types: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29699

RMHonor commented 5 years ago

Has been resolved by above PR