ConstellationFactstype
The facts about one constellation.
Import it
import type { ConstellationFacts } from "@johnmorrisdotca/hoshi-stars/constellation-facts";
Definition
interface ConstellationFacts {
constellation: Constellation;
meaning: Words;
hemisphere: Hemisphere;
bestMonth: number;
origin: Origin;
designer: Words;
year: number;
difficulty: Difficulty;
asterisms: Words[];
meteorShowers: MeteorShower[];
}
Members
| Name | Type | Description |
|---|---|---|
constellation | Constellation | The constellation. |
meaning | Words | What the name means: the English name is the one in |
hemisphere | Hemisphere | The half of the sky it lies in. |
bestMonth | number | The month, 1 to 12, in which it is highest in the evening sky (about 21:00 by the Sun, the 15th). |
origin | Origin | The group it was made in. |
designer | Words | Who made it. |
year | number | The year it was made (about 150 for Ptolemy's). |
difficulty | Difficulty | How easy it is to find. |
asterisms | Words[] | Patterns of stars that use it and are not constellations (the Big Dipper, the Summer Triangle). |
meteorShowers | MeteorShower[] | The meteor showers whose radiant lies in it, in date order. |
Examples
import { constellationFacts, type ConstellationFacts } from "@johnmorrisdotca/hoshi-stars/constellation-facts";
const orion: ConstellationFacts = constellationFacts("Ori");
console.log(orion.constellation.name, orion.hemisphere, orion.bestMonth, orion.difficulty);Orion both 1 easyWhat it prints (run when this page was built)