CalendarHousing型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One of the housings in CALENDAR_HOUSINGS.
インポート
import type { CalendarHousing } from "@johnmorrisdotca/koyomi-calendars";
定義
type CalendarHousing = (typeof CALENDAR_HOUSINGS)[number];
例
import { calendarIcon, type CalendarHousing } from "@johnmorrisdotca/koyomi-calendars";
const housing: CalendarHousing = "circle";
console.log(calendarIcon({ month: 11, day: 3, housing }).startsWith("<svg"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。