Try to produce subset of object
type person = {name: string, age: number, dob: Date};
type p1 = Pick<person, 'name' | 'dob'>
but get error ("error dob is missing") if
person1: p1 = {name: 'test1'}
I am wondering what is the best way to create all subsets of type person
in Typescript.