I use Pick, but how could I write a generic PickMulti which can pick multiple fields?
interface MyInterface {
a: number,
b: number,
c: number
}
// this works, but I would like a generic one in number of fields
type AB = Pick<Pick<MyInterface, 'a'>, 'b'>;
// Something like this:
type PickMulti = /* how to write this?*/;
type AB = PickMulti<MyInterface, ['a', 'b']>