FlipDate型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A day to show or turn to: a year, a month 1 to 12 and a day of the month.
インポート
import type { FlipDate } from "@johnmorrisdotca/koyomi-calendars/animate";
定義
interface FlipDate {
year: number;
month: number;
day: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
year | number | |
month | number | |
day | number |
例
import { nextDay, type FlipDate } from "@johnmorrisdotca/koyomi-calendars/animate";
const today: FlipDate = { year: 2026, month: 11, day: 3 };
console.log(nextDay(today));{ year: 2026, month: 11, day: 4 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。