Reference · The <chikyu-space> element
BodyNametype
The name of one of the bodies in BODY_NAMES.
Import it
import type { BodyName } from "@johnmorrisdotca/chikyu-earth/space/element";
Definition
type BodyName = (typeof BODY_NAMES)[number];
Examples
import { BODY_NAMES, type BodyName } from "@johnmorrisdotca/chikyu-earth/space/element";
const mars: BodyName = "Mars";
console.log(BODY_NAMES.includes(mars));