SourceInfotype
What a source says about itself. *
Import it
import type { SourceInfo } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface SourceInfo {
id: string;
name: {
en: string;
ja: string;
};
credit: {
en: string;
ja: string;
};
licence: Licence;
url: string;
retrieved: string;
}
Members
| Name | Type | Description |
|---|---|---|
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. |
Examples
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",
};