Reference · Rockets, variants, parts and the fit check
PartKindtype
What kind of part a record is: a booster, a ship, a stage, a fairing, a capsule, an engine, a fin and so on. A joint only mates a part of a kind that fits it.
Import it
import type { PartKind } from "@johnmorrisdotca/uchusen-rockets";
Definition
type PartKind = "booster" | "first-stage" | "ship" | "second-stage" | "fairing" | "capsule" | "trunk" | "engine" | "fin" | "flap" | "ring" | "test-vehicle" | "third-stage" | "adapter" | "service-module" | "tower" | "tank" | "solid-booster" | "liquid-booster" | "orbiter" | "deck" | "mount" | "arms" | "site" | "spacecraft" | "module";
Examples
import { partEntry, type PartKind } from "@johnmorrisdotca/uchusen-rockets";
const kind: PartKind | undefined = partEntry("raptor-vacuum")?.record.kind;
console.log(kind);engineWhat it prints (run when this page was built)