Dziedzicz z filtrem Typecript

interface UserProfileResponse {
  id: number;
  name: string;
  email: string;
  phone: string;
  avatar: string;
}

interface LoginResponse {
  id: number;
  name: string;
}
// instead of you can pick!
type LoginResponse = Pick<UserProfileResponse, "id" | "name">;
Puzzled Puffin