deep-object-diff icon indicating copy to clipboard operation
deep-object-diff copied to clipboard

Added TS generic

Open reinos opened this issue 1 year ago • 0 comments

Because there is no way to define the output of the type, and we should avoid updatedDiff(objectA, objectB) as MyType we introduce generics. Now we can just do updatedDiff<MyType>(objectA, objectB). Or just updatedDiff(objectA, objectB) if the compile can type guessing.

reinos avatar Nov 17 '23 09:11 reinos