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
So the result is always of type object. But it would be nice if we could do this:
constobj1: MyType={ ... };constobj2: Partial<MyType>={ ... };constnewObject1=mergician(obj1,obj2);// newObject1 is now of type MyTypeconstnewObject2=mergician<MyType>({},obj1);// newObject2 is cast as MyType
The text was updated successfully, but these errors were encountered:
First off, great library. My request is that mergician would infer the type of the object passed in, or at least allow a generic
From the types definition, I see this:
So the result is always of type
object
. But it would be nice if we could do this:The text was updated successfully, but these errors were encountered: