Is it feasible to create a custom utility type in TypeScript that resembles the Pick
-style, allowing for specified keys that may or may not exist on the selected object type? For example:
interface Alpha
{
a: boolean;
b: boolean;
}
type Selected = OptionalSelect<Alpha, 'a' | 'c'>; // { a: boolean }