mariocasciaro / object-path-immutable

Modify deep object properties without modifying the original object (immutability). Works great with React and Redux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect typescript type for source parameter of assign method

Neaox opened this issue · comments

The assign method's source is incorrectly typed to T which is the root type, this is usually not the case as you generally are updating (assigning) a nested value, whos type is contained within, but not equal to T.

The correct type for the source parameter would be any