Reference · Facts, line drawings and positions
MoonIdtype
The name of a moon the package draws, such as moon, io or titan.
Import it
import type { MoonId } from "@johnmorrisdotca/wakusei-planets";
Definition
type MoonId = (typeof MOONS_OF)[keyof typeof MOONS_OF][number];
Examples
import { MOONS_OF, type MoonId } from "@johnmorrisdotca/wakusei-planets";
const id: MoonId = MOONS_OF.saturn[5];
console.log(id);titanWhat it prints (run when this page was built)