MarkerWhentype
A moment: an ISO 8601 text (2026-11-08 or 2026-11-08T21:30:00Z), milliseconds since 1970 (what Date.now() and getTime() give), or a Date.
Import it
import type { MarkerWhen } from "@johnmorrisdotca/hoshi-stars/chart";
Definition
type MarkerWhen = string | number | Date;
Examples
import type { MarkerWhen } from "@johnmorrisdotca/hoshi-stars/chart";
const moments: MarkerWhen[] = ["2026-11-08", 1794096000000, new Date(Date.UTC(2026, 10, 8))];
console.log(moments.length);
// 33What it prints (run when this page was built)