リファレンス · データの入口(自分で用意した星やディープスカイ天体を、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
SourceInfo型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a source says about itself. *
インポート
import type { SourceInfo } from "@johnmorrisdotca/hoshi-stars/door";
定義
interface SourceInfo {
id: string;
name: {
en: string;
ja: string;
};
credit: {
en: string;
ja: string;
};
licence: Licence;
url: string;
retrieved: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | Unique in a view: lower-case letters, digits and hyphens ("ucac4", "my-catalogue"). |
name | { en: string; ja: string; } | |
credit | { en: string; ja: string; } | The line shown on screen. Never empty, in both languages. |
licence | Licence | The licence: its name and link are always shown with the credit. |
url | string | The source's own page. |
retrieved | string | The day it was retrieved, yyyy-mm-dd, as NOTICE.md writes it. |
例
import type { SourceInfo } from "./data-door.ts";
const info: SourceInfo = {
id: "my-catalogue",
name: { en: "My catalogue", ja: "私のカタログ" },
credit: { en: "My catalogue, A. Person (2026)", ja: "私のカタログ(A. Person、2026年)" },
licence: { name: "CC BY 4.0", url: "https://creativecommons.org/licenses/by/4.0/" },
url: "https://example.org/my-catalogue",
retrieved: "2026-11-10",
};この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。