Mission型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One Space Shuttle flight, with the facts NASA's mission page gives (public domain; the pages and the day they were read are in NOTICE.md).
インポート
import type { Mission } from "@johnmorrisdotca/chikyu-earth/satellites";
定義
interface Mission {
id: string;
name: string;
orbiter: Orbiter;
launch: string;
landing: string | null;
crew: number;
payload: string;
payloadJa: string;
noradId: number | null;
hubble?: HubbleVisit;
url: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A short name for an address, lower case: |
name | string | The flight's name as NASA writes it without the dash in the middle: |
orbiter | Orbiter | |
launch | string | The liftoff, ISO 8601 in UTC ( |
landing | string | null | The landing, in the same form; null for STS-51-L, which broke up 73 seconds after liftoff. |
crew | number | The number of people NASA's page lists for the flight. |
payload | string | The main payload or job, in a few words. |
payloadJa | string | |
noradId | number | null | The NORAD catalogue number the flight's craft was given while in orbit (what Space-Track's element sets are filed under); null when it was given none. |
hubble (省略可) | HubbleVisit | undefined | Set on the flights that deployed or serviced the Hubble Space Telescope (catalogue number 20580), which the flight's element file holds too. |
url | string | NASA's page for the flight. |
例
import { missionOf } from "@johnmorrisdotca/chikyu-earth/satellites";
const flight = missionOf("STS-31");
console.log(flight?.orbiter, flight?.launch, flight?.crew, flight?.payload);Discovery 1990-04-24T12:33:51Z 5 Hubble Space Telescope deployed出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。