Description型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A rocket to check or build: its id, its variant (left out: the rocket's default) and any other part in a slot, by part id.
インポート
import type { Description } from "@johnmorrisdotca/uchusen-rockets";
定義
interface Description {
rocket: string;
variant?: string;
parts?: Readonly<Record<string, string>>;
form?: "stack" | "space";
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
rocket | string | |
variant (省略可) | string | undefined | Left out: the rocket's default variant. |
parts (省略可) | Readonly<Record<string, string>> | undefined | Another part in a slot, by its id. |
form (省略可) | "stack" | "space" | undefined |
|
例
import { check, type Description } from "@johnmorrisdotca/uchusen-rockets";
const description: Description = { rocket: "starship", variant: "v3", parts: { ship: "starship-v2-ship" } };
console.log(check(description).label);Custom build, not a vehicle that flew: Super Heavy, Block 3 (V3) with Ship, Block 2 (V2)出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。