StarPart型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One part of a star's picture and how well it is known, with a sentence for a page to show in English and Japanese.
インポート
import type { StarPart } from "@johnmorrisdotca/wakusei-planets";
定義
interface StarPart {
part: "temperature" | "colour" | "size" | "edge" | "surface" | "spots" | "rotation" | "shape" | "poles" | "prominences" | "glow";
status: StarStatus;
note: {
en: string;
ja: string;
};
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
part | "temperature" | "colour" | "size" | "edge" | "surface" | "spots" | "rotation" | "shape" | "poles" | "prominences" | "glow" | |
status | StarStatus | |
note | { en: string; ja: string; } |
例
import { starLook, type StarPart } from "@johnmorrisdotca/wakusei-planets";
const parts: readonly StarPart[] = starLook({ temperatureK: 5772, radiusSun: 1 }).parts;
console.log(parts.map((part) => `${part.part}: ${part.status}`).join(", "));temperature: measured, colour: derived, size: measured, edge: derived, surface: illustrative, spots: illustrative, rotation: illustrative, prominences: illustrative, glow: illustrative出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。