Applies Pick to all types in a union. Allows all keys that are present in any object in the union. Warning: You might not be
able to use all keys of the union if TypeScript has narrowed the union to a specific type. Eg:
typeA = { x: number; t: "a"; a: number } | { x: number; t: "b"; b: number }; consta: A = { t:"a", a:1 }; constb = pick(a, ["t", "a", "b"]); // No overload matches this call. <snip> Type '"b"' is not assignable to type '"a" | "t" | "d"'.
Applies Pick to all types in a union. Allows all keys that are present in any object in the union. Warning: You might not be able to use all keys of the union if TypeScript has narrowed the union to a specific type. Eg: