NearStarDistanceSourcetype
Where the distance comes from: "GCTP" a measured parallax with an error, "BSC" the Bright Star Catalogue's own trigonometric parallax, or "dynamical" its parallax from the orbit of a binary.
Import it
import type { NearStarDistanceSource } from "@johnmorrisdotca/hoshi-stars/near-stars";
Definition
type NearStarDistanceSource = "GCTP" | "BSC" | "dynamical";
Examples
import { nearStarByName, type NearStarDistanceSource } from "@johnmorrisdotca/hoshi-stars/near-stars";
const source: NearStarDistanceSource = nearStarByName("Sirius")!.sources.distance;
console.log(source);GCTPWhat it prints (run when this page was built)