Twilighttype
How dark the sky is by the Sun's altitude: "day" (the Sun's upper edge up, -0.833 degrees or higher), "civil" twilight (down to -6), "nautical" (down to -12), "astronomical" (down to -18) and "night".
Import it
import type { Twilight } from "@johnmorrisdotca/hoshi-stars/tonight";
Definition
type Twilight = "day" | "civil" | "nautical" | "astronomical" | "night";
Examples
import type { Twilight } from "@johnmorrisdotca/hoshi-stars/tonight";
const now: Twilight = "astronomical";
console.log(now);astronomicalWhat it prints (run when this page was built)