SkyName型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How dark the watcher's sky is, by the Sun's altitude: day (the Sun is up), civil twilight (the Sun is below the horizon by up to 6 degrees: the brightest stars and planets show), nautical (6 to 12 degrees),
astronomical (12 to 18 degrees) and night (more than 18 degrees below).
インポート
import type { SkyName } from "@johnmorrisdotca/chikyu-earth/passes";
定義
type SkyName = "day" | "civil" | "nautical" | "astronomical" | "night";
例
import type { SkyName } from "@johnmorrisdotca/chikyu-earth/passes";
const sky: SkyName = "civil";
console.log(sky);civil出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。