Reference · Rockets, variants, parts and the fit check
BuilderOptiontype
One part a row of the builder offers: its id, its name and the rocket it comes from.
Import it
import type { BuilderOption } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface BuilderOption {
id: string;
name: string;
rocket: string;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
rocket | string | Which rocket it comes from, to group a long list. |
Examples
import { builderState, type BuilderOption } from "@johnmorrisdotca/uchusen-rockets";
const first: BuilderOption | undefined = builderState().rows[0]?.options[0];
console.log(first);{
id: 'starship-v1-flight1-booster',
name: 'Super Heavy, Block 1, first flight (Ship 24, Booster 7)',
rocket: 'Starship'
}What it prints (run when this page was built)