Lookup with Union Keys
Indexing with multiple keys requires a union type inside the brackets.
Codetypescript
interface User {
id: number;
name: string;
age: number;
}
type IdOrName = User["id" & "name"];
let value: IdOrName;What is the bug in this code?