interface User { id: number; userName: string; firstName: string; lastName: string; } type UserProp = keyof User; // "id" | "userName" | "firstName" | "lastName"