リファレンス · 確認された系外惑星をもつ、訪ねてみたい星 (位置・距離、惑星ごとの名前と公転周期)
Exoplanet型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One confirmed planet, as the NASA Exoplanet Archive gives it.
インポート
import type { Exoplanet } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";
定義
interface Exoplanet {
name: string;
letter: string;
periodDays: number | undefined;
periodReference: string | undefined;
discoveryYear: number | undefined;
discoveryMethod: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
name | string | The planet's name ( |
letter | string | The letter after the star's name ( |
periodDays | number | undefined | The orbital period in days, or |
periodReference | string | undefined | The paper the period is from ( |
discoveryYear | number | undefined | The year of discovery, or |
discoveryMethod | string | How it was found, in the Archive's words ( |
例
import { exoplanetHostByName, type Exoplanet } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";
const b: Exoplanet = exoplanetHostByName("Proxima Centauri")!.planets[0]!;
console.log(b.name, b.periodDays, b.discoveryYear);Proxima Cen b 11.18465 2016出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。