Reference · Rockets, variants, parts and the fit check
BuilderRowtype
One row of the builder, from the bottom: what it chooses, the parts it offers, the one chosen, and whether the builder made the choice because only one part fits.
Import it
import type { BuilderRow } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface BuilderRow {
label: string;
options: readonly BuilderOption[];
chosen: string;
auto: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
label | string | What this row chooses. |
options | readonly BuilderOption[] | |
chosen | string | |
auto | boolean | One answer only: the builder made the choice. |
Examples
import { builderState, type BuilderRow } from "@johnmorrisdotca/uchusen-rockets";
const row: BuilderRow | undefined = builderState().rows[0];
console.log(row?.label, row?.chosen, row?.auto);Super Heavy starship-v1-flight1-booster falseWhat it prints (run when this page was built)