News for hackers. Stuff that matters.
Re:Learn how to unleash the full potential of the type syste... by KrishnaShripad on Wednesday September 21, 2022 @02:00PM (#32928792)
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" })

There are no comments on this comment yet.