ExoplanetHostSelectiontype
Why a host is in the table: "near" (within 50 light-years), "named" (a star with an IAU proper name, farther) or "typed" (TRAPPIST-1, whose distance is typed from its papers).
Import it
import type { ExoplanetHostSelection } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";
Definition
type ExoplanetHostSelection = "near" | "named" | "typed";
Examples
import { exoplanetHostByName, type ExoplanetHostSelection } from "@johnmorrisdotca/hoshi-stars/exoplanet-hosts";
const why: ExoplanetHostSelection = exoplanetHostByName("TRAPPIST-1")!.selection;
console.log(why);typedWhat it prints (run when this page was built)