CatalogueRow型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One plain row a page can index, for its own search box. No DOM: a group or a satellite, with both languages on every row.
インポート
import type { CatalogueRow } from "@johnmorrisdotca/chikyu-earth/satellites";
定義
interface CatalogueRow {
kind: "satellite" | "group";
id: string;
noradId?: number;
names: {
en: string;
ja: string;
reading?: string;
};
group?: string;
orbit: OrbitKind;
aka?: readonly string[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
kind | "group" | "satellite" |
|
id | string | The group's id, or the satellite's NORAD number as a string. |
noradId (省略可) | number | undefined | The NORAD catalogue number. Only a satellite has one. |
names | { en: string; ja: string; reading?: string; } | Names in both languages. |
group (省略可) | string | undefined | The group's id. Only a satellite has one. |
orbit | OrbitKind | |
aka (省略可) | readonly string[] | undefined | Other names already written in the catalogue, such as HST for Hubble. Absent when there are none. |
例
import type { CatalogueRow } from "@johnmorrisdotca/chikyu-earth/satellites";
const row: CatalogueRow = { kind: "group", id: "weather", names: { en: "Weather", ja: "気象衛星" }, orbit: "mixed" };
console.log(row.names.ja);気象衛星出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。