Reference · The Messier objects
GalaxyDistanceSourcetype
Where a galaxy's distance was read: a database, its licence, the items of it that were read and how many statements they held.
Import it
import type { GalaxyDistanceSource } from "@johnmorrisdotca/hoshi-stars/deep-sky";
Also exported from: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic
Definition
interface GalaxyDistanceSource {
name: string;
licence: string;
items: string[];
values: number;
}
Members
| Name | Type | Description |
|---|---|---|
name | string | The database: |
licence | string | The licence the values are given under: |
items | string[] | The database's item numbers for the galaxy ( |
values | number | How many distance statements the median is of (deprecated ones are not counted). |
Examples
import { deepSkyObject, galaxyDistance, type GalaxyDistanceSource } from "@johnmorrisdotca/hoshi-stars/deep-sky";
const source: GalaxyDistanceSource = galaxyDistance(deepSkyObject("M31")!)!.sources[0]!;
console.log(source.name, source.licence, source.items, source.values);Wikidata CC0 1.0 [ 'Q2469' ] 1What it prints (run when this page was built)