I am wondering if there is a way to accomplish the work that Partial does in TypeScript in scala.
Partial
Specifically, for a given case class like