Reference · Facts, line drawings and positions
LineupTexttype
What the line-up says about one body, in words.
Import it
import type { LineupText } from "@johnmorrisdotca/wakusei-planets";
Definition
interface LineupText {
name: string;
radius: string;
km: string;
source: string;
method: string;
note: string;
estimated: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | |
radius | string |
|
km | string |
|
source | string | The source, short, and |
method | string | How the radius was got, one sentence. Empty for a planet. |
note | string | What the literature disagrees about, if it does. |
estimated | boolean | True when the size is estimated (from brightness, or from a distance that is not a parallax), not measured. |
Examples
import { lineupBodies, lineupText, type LineupText } from "@johnmorrisdotca/wakusei-planets";
const text: LineupText = lineupText(lineupBodies().find((body) => body.id === "betelgeuse")!, "en");
console.log(text.radius, text.km);1,057 Suns (+228 −162) 735 million kmWhat it prints (run when this page was built)