NearestThingtype
Something a query can find: a bright star, a nearby star (from /nearby, passed in among) or a deep-sky object.
Import it
import type { NearestThing } from "@johnmorrisdotca/hoshi-stars/nearest";
Definition
type NearestThing = Star | NearbyStar | DeepSkyObject;
Examples
import { nearest, type NearestThing } from "@johnmorrisdotca/hoshi-stars/nearest";
const thing: NearestThing = nearest("Sirius", { count: 1 })[0]!.thing;
console.log(thing.rightAscension.toFixed(1));102.6What it prints (run when this page was built)