Reference · The <wakusei-space> element: the Earth, Moon, Sun and planets in their places
SpaceBodytype
One of the bodies in SPACE_BODIES, by the package's usual lower-case name.
Import it
import type { SpaceBody } from "@johnmorrisdotca/wakusei-planets/space/element";
Definition
type SpaceBody = (typeof SPACE_BODIES)[number];
Examples
import { SPACE_BODIES, type SpaceBody } from "@johnmorrisdotca/wakusei-planets/space/element";
const mars: SpaceBody = "mars";
console.log(SPACE_BODIES.includes(mars));