Reference · Facts, line drawings and positions
HostIdtype
A body a moon can go round: a planet, Pluto or another dwarf planet.
Import it
import type { HostId } from "@johnmorrisdotca/wakusei-planets";
Definition
type HostId = PlanetId | DwarfId;
Examples
import { MOONS_OF, type HostId } from "@johnmorrisdotca/wakusei-planets";
const host: HostId = "eris";
console.log(MOONS_OF[host]);[ 'dysnomia' ]What it prints (run when this page was built)