NearestKindtype
What kind of body: the Sun is "star".
Import it
import type { NearestKind } from "@johnmorrisdotca/wakusei-planets/nearest";
Definition
type NearestKind = BodyFacts["kind"];
Examples
import { nearest, type NearestKind } from "@johnmorrisdotca/wakusei-planets/nearest";
const kind: NearestKind = "planet";
console.log(nearest("moon", { kind, count: 1, date: Date.UTC(2026, 10, 8) })[0]?.id);venusWhat it prints (run when this page was built)