|
|
|
|
|
by KrishnaShripad
1362 days ago
|
|
Wow yeah it gets way too complex if you want to track the types of properties within the objects too! If that is the case, then I would just prefer to do this instead as it is much simpler: type Value = { a: string }
const result = merge<Value, Value>({ a: 1 }, { a: "fdsfsd" })
|
|