ExoplanetHostSourcetype
Where a value of a host star 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 (TRAPPIST-1's parallax, from its papers).
Import it
import type { ExoplanetHostSource } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";
Definition
type ExoplanetHostSource = "BSC" | "GCTP" | "2MASS" | "typed";
Examples
import { exoplanetHostByName, type ExoplanetHostSource } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";
const source: ExoplanetHostSource = exoplanetHostByName("Proxima Centauri")!.sources.position;
console.log(source);2MASSWhat it prints (run when this page was built)