LineupText型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the line-up says about one body, in words.
インポート
import type { LineupText } from "@johnmorrisdotca/wakusei-planets";
定義
interface LineupText {
name: string;
radius: string;
km: string;
source: string;
method: string;
note: string;
estimated: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name | string | |
radius | string |
|
km | string |
|
source | string | The source, short, and |
method | string | How the radius was got, one sentence. Empty for a planet. |
note | string | What the literature disagrees about, if it does. |
estimated | boolean | True when the size is estimated (from brightness, or from a distance that is not a parallax), not measured. |
例
import { lineupBodies, lineupText, type LineupText } from "@johnmorrisdotca/wakusei-planets";
const text: LineupText = lineupText(lineupBodies().find((body) => body.id === "betelgeuse")!, "en");
console.log(text.radius, text.km);1,057 Suns (+228 −162) 735 million km出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。