export interface SWAPIPlanet { name: string; rotation_period: string; orbital_period: string; diameter: string; climate: string; gravity: string; terrain: string; surface_water: string; population: string; url: string; } export interface SWAPIStarship { name: string; model: string; manufacturer: string; cost_in_credits: string; length: string; max_atmosphering_speed: string; crew: string; passengers: string; cargo_capacity: string; starship_class: string; url: string; } export interface Planet extends SWAPIPlanet { id: string; x: number; y: number; } export interface Starship extends SWAPIStarship { id: string; ds: number; hp: number; }