Source型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A source of a figure: its title, publisher and address, the date on it where it has one, how it was read (directly, by search or cited) and its licence.
インポート
import type { Source } from "@johnmorrisdotca/uchusen-rockets";
定義
interface Source {
title: string;
publisher: string;
url: string;
date?: string;
read: "direct" | "search" | "cited";
licence?: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
title | string | |
publisher | string | |
url | string | |
date (省略可) | string | undefined | The date on the source, when it has one. |
read | "direct" | "search" | "cited" | |
licence (省略可) | string | undefined |
例
import { SOURCES, type Source } from "@johnmorrisdotca/uchusen-rockets";
const source: Source = SOURCES["wikipedia-starship"];
console.log(source.publisher, source.read);Wikipedia direct出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。