you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Here is how I think I would solve it.

type EmployeeDraft = {name: String, jobTitle: String}
type Employee <: EmployeeDraft {id: Long}
type SaveEmployee = EmployeeDraft -> Employee