Reference · Facts, line drawings and positions
PlanetIdtype
The name of a planet or of Pluto: mercury to pluto.
Import it
import type { PlanetId } from "@johnmorrisdotca/wakusei-planets";
Definition
type PlanetId = (typeof PLANET_IDS)[number];
Examples
import { PLANET_IDS, type PlanetId } from "@johnmorrisdotca/wakusei-planets";
const id: PlanetId = PLANET_IDS[4];
console.log(id);jupiterWhat it prints (run when this page was built)