JOURNEY_STOPS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every body, in the same order as BODY_IDS: the Sun, the planets, the dwarf planets, then the moons.
インポート
import { JOURNEY_STOPS } from "@johnmorrisdotca/wakusei-planets";
定義
const JOURNEY_STOPS: readonly JourneyStop[] = BODY_IDS.map(stopOf)
例
import { BODY_IDS, JOURNEY_STOPS } from "@johnmorrisdotca/wakusei-planets";
console.log(JOURNEY_STOPS.length === BODY_IDS.length, JOURNEY_STOPS[0]?.id);true sun出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。