Reference · Rockets, variants, parts and the fit check
SlotParttype
A part standing in a slot of a checked rocket.
Import it
import type { SlotPart } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface SlotPart {
slot: string;
part: PartRecord;
}
Members
| Name | Type | Description |
|---|---|---|
slot | string | |
part | PartRecord |
Examples
import { check, type SlotPart } from "@johnmorrisdotca/uchusen-rockets";
const bottom: SlotPart | undefined = check({ rocket: "starship", variant: "v3" }).parts[0];
console.log(bottom?.slot, bottom?.part.name);booster Super Heavy, Block 3 (V3)What it prints (run when this page was built)