NearbyPositionSourcetype
Where a star's position comes from: a 2MASS source found for it (good to a fraction of an arc-second), or the Yale catalogue's own position (taken to J2000 from 1900, good to arc-seconds at best, an arc-minute at worst).
Import it
import type { NearbyPositionSource } from "@johnmorrisdotca/hoshi-stars/nearby";
Definition
type NearbyPositionSource = "2MASS" | "GCTP";
Examples
import { nearbyStarByName, type NearbyPositionSource } from "@johnmorrisdotca/hoshi-stars/nearby";
const source: NearbyPositionSource = nearbyStarByName("Proxima Centauri")!.positionSource;
console.log(source);2MASSWhat it prints (run when this page was built)