リファレンス · 20光年以内の73の星系 (英語と日本語の名前、位置、距離、伴星、値ごとの出典つき)
NearStarSource型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where a value comes from: "BSC" the Yale Bright Star Catalogue, "GCTP" the Yale General Catalogue of Trigonometric Stellar Parallaxes, "2MASS" the Two Micron All Sky Survey, or "typed" a published value
typed into the package (the companions that neither Yale table holds).
インポート
import type { NearStarSource } from "@johnmorrisdotca/hoshi-stars/near-stars";
定義
type NearStarSource = "BSC" | "GCTP" | "2MASS" | "typed";
例
import { nearStarByName, type NearStarSource } from "@johnmorrisdotca/hoshi-stars/near-stars";
const source: NearStarSource = nearStarByName("Proxima Centauri")!.sources.position;
console.log(source);BSC出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。