SpacecraftIdtype
The name of a craft: voyager1, cassini, webb...
Import it
import type { SpacecraftId } from "@johnmorrisdotca/wakusei-planets/spacecraft";
Definition
type SpacecraftId = (typeof SPACECRAFT_IDS)[number];
Examples
import { SPACECRAFT_IDS, type SpacecraftId } from "@johnmorrisdotca/wakusei-planets/spacecraft";
const id: SpacecraftId = SPACECRAFT_IDS[0];
console.log(id);voyager1What it prints (run when this page was built)