BuilderRow型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { BuilderRow } from "@johnmorrisdotca/uchusen-rockets";
定義
interface BuilderRow {
label: string;
options: readonly BuilderOption[];
chosen: string;
auto: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
label | string | What this row chooses. |
options | readonly BuilderOption[] | |
chosen | string | |
auto | boolean | One answer only: the builder made the choice. |
例
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 false出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。