Reference · Facts, line drawings and positions
LUMINOSITY_CLASSESconstant
A star's luminosity class, as the spectral type writes it: 0 a hypergiant, Ia, Iab and Ib supergiants, II a bright giant, III a giant, IV a subgiant, V a dwarf (the Sun is G2 V), VI a subdwarf and D a white dwarf.
Import it
import { LUMINOSITY_CLASSES } from "@johnmorrisdotca/wakusei-planets";
Definition
const LUMINOSITY_CLASSES: readonly ["0", "Ia", "Iab", "Ib", "II", "III", "IV", "V", "VI", "D"] = ["0", "Ia", "Iab", "Ib", "II", "III", "IV", "V", "VI", "D"] as const
Examples
import { LUMINOSITY_CLASSES, type LuminosityClass } from "@johnmorrisdotca/wakusei-planets";
const supergiant: LuminosityClass = LUMINOSITY_CLASSES[1];
console.log(supergiant, LUMINOSITY_CLASSES.length);Ia 10What it prints (run when this page was built)