bizdays-toolkit 0.22.2 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -1
- package/README.md +14 -13
- package/dist/core/calendar.d.ts +75 -43
- package/dist/core/calendar.js +91 -72
- package/dist/core/date.d.ts +3 -3
- package/dist/core/date.js +9 -9
- package/dist/core/diagnose.d.ts +5 -3
- package/dist/core/diagnose.js +63 -34
- package/dist/core/errors.d.ts +2 -2
- package/dist/core/input.d.ts +3 -0
- package/dist/core/migrate.d.ts +37 -0
- package/dist/core/migrate.js +96 -0
- package/dist/core/month.d.ts +5 -5
- package/dist/core/month.js +16 -16
- package/dist/core/renamed.d.ts +43 -0
- package/dist/core/renamed.js +73 -0
- package/dist/core/schedule.d.ts +278 -127
- package/dist/core/schedule.js +170 -97
- package/dist/core/types.d.ts +5 -2
- package/dist/diagnose/index.d.ts +1 -0
- package/dist/diagnose/index.js +1 -0
- package/dist/fr/index.d.ts +3 -3
- package/dist/fr/rules.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/jp/index.d.ts +33 -8
- package/dist/jp/index.js +6 -3
- package/dist/jp/rules.d.ts +8 -7
- package/dist/jp/rules.js +1 -1
- package/dist/provider/index.d.ts +35 -13
- package/dist/provider/index.js +16 -12
- package/dist/sg/index.d.ts +1 -1
- package/dist/sg/rules.d.ts +1 -0
- package/dist/uk/index.d.ts +1 -1
- package/dist/uk/rules.d.ts +1 -0
- package/dist/uk/rules.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,75 @@
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.30.1] - 2026-10-30
|
|
8
|
+
|
|
9
|
+
0.30.0 の改名の後始末の版です。新しい設定・関数・診断コードはありません。公開物の `.js` の挙動が変わるのは Fixed の 1 つだけです。
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- 日本の祝日の提供元とほかの提供元を合わせた設定(`holidayProvider: [jp, england]` など)で、旧名の `kinds: ["national"]` が、ほかの提供元の `"regular"` の祝日(英国の bank holidays など)にも当たっていた。0.30.0 の退行で、改名は結果を変えないという約束(`docs/decisions.md` の 54 番)から外れていた。0.22.x と同じく、「種別が `"national"` の祝日、または ID が `"JP"` の提供元が返した `"regular"` の祝日」に当てる。日本の提供元だけの設定の結果は変わらない。パッチで出す根拠は `docs/decisions.md` の 55 番。`id` を変えて包んだ日本の提供元は ID `"JP"` の提供元とみなさないので、`"national"` は 0.30.0 と同じく何にも当たらない(下の Changed の診断のメッセージが理由を示す。`docs/migration.md`)
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- 診断: 和集合の設定の `"national"` の `deprecated-option` のメッセージに、当てている祝日と、1.0.0 で ID `"JP"` の提供元を含む設定の `"national"` が `invalid-option` になることを添えた。ID `"JP"` の提供元がない設定で `"national"` の規則が何にも当たらないときは、`never-matches` のメッセージに改名の前の名前の可能性を添えた(`code` は変わらない)
|
|
18
|
+
- `migrateCalendarOptions`・`migrateScheduleOptions`: `kinds` の `"national"` は、祝日の提供元がすべて ID `"JP"` のときだけ書き換える。和集合では、新しい名前の `"regular"` がほかの提供元の祝日にも当たるので書き換えず、`changes` にも出さない(0.30.0 は和集合でも書き換えていた)
|
|
19
|
+
- ガイド(英日): 保存した設定の `"national"` を `migrate…` で書き換えるには、読み込み時に付ける提供元を入れてから呼ぶこと(提供元がなければ書き換えない)、週の第 n 営業日(`businessDayOfWeek`)も週が対応年の外にかかる日は `out-of-range` になることを足した。月の関数の引数名を `closingDayOfMonth`・`input` に直した
|
|
20
|
+
- `docs/migration.md`: 和集合での `"national"` の扱いと 1.0.0 以降の書き方(日本の提供元を包んで種別を付け替える)、`id` を変えて包んだ提供元の注、週の第 n 営業日と対応年の端、0.30.0 の引数の名前の表を足した。「旧名は取り消し線と診断が示す」を、`combineCalendars`・`createCalendarFromSchedule`・`dueDate`・`withSubstituteDays` の設定の旧名は示さないので検索すること、に直した
|
|
21
|
+
- 型定義の説明: `skipWeekdays` の説明が書けない項目(`WeekdayPattern.dayOfMonth`・`DayOfMonthPattern.weekday`)に付いていたのを正しい項目に移し、例の旧名 `day` を `dayOfMonth` に直した。`@example`・TSDoc の旧名(`holidays`・`recurring` など)を直し、`BusinessDayOfWeekPattern` に対応年の端の挙動を、`HolidayProvider.id` に ISO にない地域の ID(`"FR-AM"`)を書いた。`.js` は変わらない
|
|
22
|
+
- README の祝日の種別の説明を今の値に直した。README(英日)の minify + gzip のサイズを測り直した(ルート 12.7 → 13.0 KB、日本込み 14.4 → 14.7 KB、英国込み 14.8 → 15.1 KB、フランス込み・シンガポール込み 13.6 → 13.9 KB)。`docs/providers.md` のコード例のコメントに残っていた置き換えの取り残し("US federal holidayProvider:" → "US federal holidays:")を直した
|
|
23
|
+
- `docs/decisions.md`: 55 番(直前の版で入った退行の修正はパッチ)を足し、42・50・52・54 番に追記した。`RELEASING.md`: パッチの区分に退行の修正を足し、互換性の約束から型の名前の列挙をやめ、旧名(`outOfRange`)を直した。`src/core/schedule.ts`・`calendar.ts` の冒頭の判定の順番の写しを削り、ガイドと 12 番を指すようにした
|
|
24
|
+
|
|
25
|
+
### 開発
|
|
26
|
+
|
|
27
|
+
- `scripts/check-names.ts` に、形を分けるための `?: never` の項目に TSDoc が付いていないこと(C13)と、今の状態を書いた文書・スクリプト・型定義の TSDoc に 0.30.0 の旧名が残っていないこと(C14)の検査を足した(`etc/naming.md`)。0.30.0 に当てると、C13 は 2 か所、C14 はガイドの引数名・RELEASING.md・`check-readme-examples.ts` の補い・型定義の `@example` と `day:` を検出する
|
|
28
|
+
- `scripts/check-size.ts`: 上限を変えた版で、CHANGELOG の測定値(「(測定 N)」の形)を 1 つも照合できなければ失敗にし、照合した件数を出すようにした。0.30.0 の節は測定値をこの形で書いておらず、照合が 0 件のまま合格していた(記載の値は、測定の後の内部の関数名の変更で公開物と 6〜7 バイト違っていた)
|
|
29
|
+
- 和集合の `"national"` のテスト(`test/national-union.test.ts`)を足した。日本の提供元を包んだ設定との関係を対応年のすべてで確かめ、公開済みの 0.22.2 の結果(2020〜2027 年)を錨にする(`test/fixtures/national-union-0.22.2.json`)
|
|
30
|
+
- サイズ(gzip): ルート 17,646 → 18,054(測定 18,054)、`./jp` 19,890 → 20,288(測定 20,288)、`./diagnose` 23,919 → 24,492(測定 24,492)。和集合の `"national"` の判定とメッセージのため。上限は変えていない(ルート・`./jp`・`./diagnose` は上限の 97〜98%)
|
|
31
|
+
|
|
32
|
+
## [0.30.0] - 2026-10-27
|
|
33
|
+
|
|
34
|
+
公開する名前を 1 つの規則に合わせて改めた版です(`docs/decisions.md` の 54 番)。名前の整理の版を区切るため、版の番号を 0.30.0 にしました(0.23.0〜0.29.0 は欠番)。旧名は 1.0.0 まで受け付けます。作業は「移行」と `docs/migration.md` の 0.30.0 の節にあります。
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- 週の第 n 営業日の規則 `{ businessDayOfWeek, weekStart }`(繰り返しの規則。数え方・`calendar`・`holidayOverlapPolicy` は `businessDayOfMonth` と同じ)と、型 `BusinessDayOfWeek`・`BusinessDayOfWeekPattern`
|
|
39
|
+
- `migrateCalendarOptions`・`migrateScheduleOptions`(`bizdays-toolkit/diagnose`): 保存した設定の旧名のキーと値を新しい名前に書き換え、書き換えたもの(`OptionChange`)を元の位置で返す。型 `OptionsMigration`・`OptionChange`
|
|
40
|
+
- 診断コード `deprecated-option`(0.30.0 で改名した旧名を、書いた位置で知らせる warning。1.0.0 で削除する)
|
|
41
|
+
- `CalendarFromScheduleOptions`(`createCalendarFromSchedule` の第 3 引数の型に名前を付けた)
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
|
|
45
|
+
- 公開する名前を、規則 N1〜N9(`etc/naming.md`)に合わせて改めた。設定のキー 18 個・値 2 つ、関数・メソッド 6 つ、型 17 個、返す項目 4 つ、型引数(`T` → `Value`)、引数(`addDays` の `n`、`isValidDate` の `input`、`closingMonth`・`closingPeriod` の `closingDayOfMonth`)。一覧は `docs/migration.md` の 0.30.0 の節。旧名は `@deprecated` の別名として残り、設定の旧名は読み替える(両方を書くと `invalid-option`)
|
|
46
|
+
- 返す値: 営業日カレンダーの理由 `"regular"` → `"default"`(`createCalendarFromSchedule` は `"open-weekday"`)、エラーコード `"invalid-month-day"` → `"invalid-annual-date"`、設定の中の位置を表す文字列は新しいキー名(日本の祝日の `kind` は Data)
|
|
47
|
+
- 規則の形ごとに受ける項目を型で分けた(`holidayOverlapPolicy`・`skipWeekdays`・`calendar`)。実行時に `invalid-option` になる書き方が型でも通らない(`docs/decisions.md` の 33 番の見直し)
|
|
48
|
+
- `outOfRangePolicy: "throw"` のとき、隣の日を見る規則(祝日の翌日・祝前日・`skipWeekdays`・`"after-holiday"` の振替元)が対応年の外の日を見ると `out-of-range` を投げる(これまでは外を黙って祝日でないとみなしていた)。診断は外を祝日なしとして扱う
|
|
49
|
+
- 打ち間違いの候補(`unknown-option` の `message`)は、旧名に近いキーなら新しい名前を挙げる
|
|
50
|
+
|
|
51
|
+
### Deprecated
|
|
52
|
+
|
|
53
|
+
- 0.30.0 で改名した旧名のすべて(`docs/migration.md` の「1.0.0 で削除する予定の API」)。1.0.0 で削除し、設定の旧名は `invalid-option` にする
|
|
54
|
+
|
|
55
|
+
### Data
|
|
56
|
+
|
|
57
|
+
- 日本の祝日の `kind` の `"national"` を `"regular"` にした(日付・名称・`key` は変わらない)
|
|
58
|
+
|
|
59
|
+
### 移行
|
|
60
|
+
|
|
61
|
+
- 実行時は旧名のままでも動くが、返す値の変更・対応年の端の挙動・TypeScript で必須のキーの旧名・`dayInfoOn` の結果を丸ごと比べるテストは 0.30.0 に上げた時点で対応が要る(下の箇条)。それ以外は TypeScript の取り消し線と診断の `deprecated-option` を手がかりに新しい名前に書き換える。保存した設定は `migrateCalendarOptions`・`migrateScheduleOptions` で書き換えられる
|
|
62
|
+
- 型が旧名を持つのは省略可能なキーだけなので、スケジュールの `weekly`・合成の `businessDay`・期日の `day`・振替の `rules`・規則の `day` は、TypeScript では新しい名前に書き換える
|
|
63
|
+
- 返す値(`reason` の `"regular"`、日本の `kind` の `"national"`、エラーコード `"invalid-month-day"`、設定の中の位置の文字列)と比べているコードを改める
|
|
64
|
+
- `dayInfoOn` の結果を `deepEqual` で比べているテストは、期待値に `open` と、`rulePath` があれば `optionPath` を足し、`reason` が `"regular"` なら `"default"`(`createCalendarFromSchedule` では `"open-weekday"`)に直す
|
|
65
|
+
- 対応年の最後の日付の近くで祝前日・祝日の翌日・振替の規則を使っていて例外になったら、`outOfRangePolicy: "ignore"` にするか、対応年の中で使う
|
|
66
|
+
|
|
67
|
+
### 開発
|
|
68
|
+
|
|
69
|
+
- 名前の規則の検査 `scripts/check-names.ts` を `pnpm check` に足した(`etc/naming.md` の用語集・外部の名前の出典と、移行ガイドの削除予定の表に照らす。名前を許す一覧は持たない)。名前が約束する意味は `test/naming.test.ts` の性質のテストで確かめる
|
|
70
|
+
- 改名の表を `src/core/renamed.ts` の 1 か所に置き、読み替え・診断・`migrate…` がこの表だけを使う
|
|
71
|
+
- `scripts/bench.ts` は、前の版が新しい名前を知らないときは設定を旧名に戻して渡す(CI の bench が同じ場面を比べるため)
|
|
72
|
+
- `scripts/check-readme-examples.ts` は、0.30.x の間だけ返す旧名の項目(削除予定の表から決める)を比べない
|
|
73
|
+
- サイズの上限を上げた(ルート 17,500 → 18,500、`./jp` 19,500 → 21,000、`./diagnose` 23,000 → 25,000、`./provider` 3,500 → 4,500 バイト)。改名の表・旧名の読み替え・旧名の別名・週の第 n 営業日・`migrate…` のため。gzip でルート 16,074 → 17,639、`./jp` 18,293 → 19,883、`./diagnose` 21,445 → 23,913、`./provider` 3,111 → 4,041 バイト
|
|
74
|
+
- README のサイズの値を 0.30.0 で測り直した
|
|
75
|
+
|
|
7
76
|
## [0.22.2] - 2026-10-27
|
|
8
77
|
|
|
9
78
|
### Changed
|
|
@@ -660,7 +729,9 @@
|
|
|
660
729
|
|
|
661
730
|
- 日本: 2026 年 2 月の官報(2027 年の春分・秋分の日)まで反映(`dataVersion: "2026-02"`、`confirmedThrough: 2027`)
|
|
662
731
|
|
|
663
|
-
[Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.
|
|
732
|
+
[Unreleased]: https://github.com/inohan77/bizdays-toolkit/compare/v0.30.1...HEAD
|
|
733
|
+
[0.30.1]: https://github.com/inohan77/bizdays-toolkit/compare/v0.30.0...v0.30.1
|
|
734
|
+
[0.30.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.22.2...v0.30.0
|
|
664
735
|
[0.22.2]: https://github.com/inohan77/bizdays-toolkit/compare/v0.22.1...v0.22.2
|
|
665
736
|
[0.22.1]: https://github.com/inohan77/bizdays-toolkit/compare/v0.22.0...v0.22.1
|
|
666
737
|
[0.22.0]: https://github.com/inohan77/bizdays-toolkit/compare/v0.21.4...v0.22.0
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ A business-day calendar that combines public holidays with company or store clos
|
|
|
24
24
|
- **Recurring rules**: "closed on the 3rd Wednesday", "every other Wednesday", "stocktaking on the last day of the month", "closed on Mondays, moved to the next non-holiday when Monday is a holiday", "the day after (or before) a holiday", "the last weekday before a bank holiday", shift cycles such as four days on and two days off, each with its own behaviour on holidays and an optional effective period
|
|
25
25
|
- **Day-by-day values and combined calendars**: store hours that change by weekday, holiday and date; a business-day calendar made from such a schedule; and the days on which all (or any) of several calendars are open
|
|
26
26
|
- **Option diagnostics**: `bizdays-toolkit/diagnose` lists rules that never apply, rules that are shadowed or redundant, rules that have ended, typos in option names and options with no business day at all, without throwing. One line in a test keeps options honest
|
|
27
|
-
- **Lightweight, zero dependencies, time-zone safe**: about
|
|
27
|
+
- **Lightweight, zero dependencies, time-zone safe**: about 13.0 KB min+gzip (about 14.7 KB with Japanese holidays, about 15.1 KB with UK bank holidays, about 13.9 KB with French holidays, about 13.9 KB with Singapore holidays; measured for 0.30.1). Standard JavaScript and `Intl` only, ESM with bundled types; tested on Node.js, Chrome, Firefox, Edge, Safari, Cloudflare Workers, Bun and Deno. Instants such as `Date` are converted to a civil date in the calendar's time zone before evaluation
|
|
28
28
|
- **Extensible to other countries and regions**: holiday providers are pluggable through the `HolidayProvider` interface, and `bizdays-toolkit/provider` exposes the calendar arithmetic (nth weekday of a month, Easter, substitute days for holidays on a weekend) that most countries' holidays are built from
|
|
29
29
|
|
|
30
30
|
## Installation
|
|
@@ -46,14 +46,14 @@ import { isHoliday, jp } from "bizdays-toolkit/jp";
|
|
|
46
46
|
isHoliday("2026-11-23"); // true (Labor Thanksgiving Day)
|
|
47
47
|
|
|
48
48
|
const calendar = createCalendar({
|
|
49
|
-
|
|
49
|
+
holidayProvider: jp,
|
|
50
50
|
closedWeekdays: [0, 6],
|
|
51
|
-
|
|
51
|
+
closedAnnualDates: [{ from: "12-29", to: "01-03", name: "New Year closure" }],
|
|
52
52
|
});
|
|
53
53
|
calendar.isBusinessDay("2026-12-30"); // false
|
|
54
54
|
calendar.addBusinessDays("2026-12-28", 1); // "2027-01-04"
|
|
55
55
|
calendar.businessDayOnOrAfter("2026-12-28T15:30", { cutoff: "14:00" }); // "2027-01-04" (after the cutoff, so the next business day)
|
|
56
|
-
calendar.dueDate("2026-11", {
|
|
56
|
+
calendar.dueDate("2026-11", { dayOfMonth: 23, convention: "following" }); // "2026-11-24" (the 23rd is a holiday)
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
The [guide](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md) explains everything below in full, with examples that are run in CI. This README is the short version.
|
|
@@ -69,30 +69,31 @@ The [guide](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md)
|
|
|
69
69
|
| `metropole`, `alsaceMoselle` | `bizdays-toolkit/fr` | `Europe/Paris` | 2000–2099 | data.gouv.fr "Jours fériés en France" |
|
|
70
70
|
| `sg` | `bizdays-toolkit/sg` | `Asia/Singapore` | 2020–2027 | data.gov.sg (Ministry of Manpower) |
|
|
71
71
|
|
|
72
|
-
Each holiday carries its date, name (and English name), `kind` (
|
|
72
|
+
Each holiday carries its date, name (and English name), `kind` (such as `regular`, `substitute` and `special`; the values differ by country) and `confirmed` (whether the date is officially fixed; the Japanese equinox days and UK bank holidays after the last published year are predictions). Years after the supported range are an error unless `outOfRangePolicy: "ignore"` is set, and `unconfirmedHolidayPolicy: "throw"` stops any result that would depend on a predicted holiday. Details: [Bundled holiday providers](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#bundled-holiday-providers), [Unconfirmed holidays](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#unconfirmed-holidays).
|
|
73
73
|
|
|
74
74
|
### Business-day calendars and recurring rules
|
|
75
75
|
|
|
76
|
-
A calendar is built from the holiday provider and your closures: `closedWeekdays`, `
|
|
76
|
+
A calendar is built from the holiday provider and your closures: `closedWeekdays`, `closedAnnualDates` (month-day ranges, across the new year too), `closedDates` and `openDates`, and recurring rules in `closedRecurringRules` / `openRecurringRules`:
|
|
77
77
|
|
|
78
78
|
| Rule | Meaning |
|
|
79
79
|
| --------------------------------------------------------- | -------------------------------------------------------------------------------- |
|
|
80
80
|
| `{ weekday: 3, nth: 3 }` | The 3rd Wednesday (`nth` is 1–5 or -1 for the last; an array for several) |
|
|
81
81
|
| `{ weekday: 3, interval: 2, anchor: "2026-01-07" }` | Every other Wednesday, counted from the anchor |
|
|
82
82
|
| `{ cycle: 6, anchor: "2026-01-05", positions: [5, 6] }` | Days 5 and 6 of every 6 days from the anchor (four days on, two days off) |
|
|
83
|
-
| `{
|
|
83
|
+
| `{ dayOfMonth: 20 }`, `{ dayOfMonth: -1 }` | The 20th, the last day of the month |
|
|
84
84
|
| `{ businessDayOfMonth: -1 }`, `{ businessDayOfMonth: 5 }` | The last business day of the month, the 5th business day |
|
|
85
|
+
| `{ businessDayOfWeek: -1, weekStart: 1 }` | The last business day of the week starting on Monday |
|
|
85
86
|
| `{ holiday: true, kinds: ["substitute"] }` | Holidays, optionally narrowed by kind or by key (`keys: ["vernal-equinox"]`) |
|
|
86
87
|
| `{ dayAfterHoliday: true }`, `{ dayBeforeHoliday: true }` | The day after (or before) a holiday or a run of holidays |
|
|
87
|
-
| `
|
|
88
|
+
| `holidayOverlapPolicy: "after-holiday"` | "Closed on Mondays, or the next non-holiday if a holiday" (can be a Saturday) |
|
|
88
89
|
| `skipWeekdays: [0, 6]` | With `"after-holiday"`: also skip weekends ("June 15, or the next business day") |
|
|
89
90
|
| `effectiveFrom`, `effectiveTo` | The period the rule is in effect |
|
|
90
91
|
|
|
91
|
-
`
|
|
92
|
+
`dayInfoOn` tells you why a day is open or closed (`reason`, `name`, `optionPath`). Every bundled holiday that recurs each year has a stable `key` (`vernal-equinox`, `good-friday`, `hari-raya-puasa`, …), so a rule can select individual holidays that no date pattern can express. Details: [Business-day calendars](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#business-day-calendars), [Recurring rules](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#recurring-rules), [Holiday keys](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#holiday-keys), [Common recipes](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#common-recipes).
|
|
92
93
|
|
|
93
94
|
### Due dates, schedules and combined calendars
|
|
94
95
|
|
|
95
|
-
- `dueDate("2026-11", {
|
|
96
|
+
- `dueDate("2026-11", { dayOfMonth: 23, convention: "following" })`, `adjust`, `closingMonth` and `closingPeriod` compute month-based due dates and closing periods with the `following`, `preceding`, `modified-following` and `modified-preceding` conventions ([Month-based due dates](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#month-based-due-dates-and-date-adjustment))
|
|
96
97
|
- `createSchedule` gives a value per day (store hours, a shipping cutoff, a price band) from the same kinds of rules, and `createCalendarFromSchedule` turns such a schedule into a calendar so the hours are the only configuration ([Day-by-day values](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#day-by-day-values-eg-store-hours), [A calendar from a schedule](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#a-business-day-calendar-from-a-schedule))
|
|
97
98
|
- `combineCalendars` builds the days on which all (or any) of several calendars are open, such as your company and the bank for a remittance date ([Combining calendars](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#combining-calendars))
|
|
98
99
|
- Dates can be given as `"YYYY-MM-DD"`, `"YYYY-MM-DDTHH:mm"`, `Date` or Temporal objects; instants are converted in the calendar's time zone ([Date and date-time inputs](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#date-and-date-time-inputs))
|
|
@@ -104,12 +105,12 @@ import { diagnoseCalendar } from "bizdays-toolkit/diagnose";
|
|
|
104
105
|
import { jp } from "bizdays-toolkit/jp";
|
|
105
106
|
|
|
106
107
|
diagnoseCalendar({
|
|
107
|
-
|
|
108
|
+
holidayProvider: jp,
|
|
108
109
|
closedWeekdays: [0],
|
|
109
|
-
|
|
110
|
+
closedRecurringRules: [{ weekday: 0 }],
|
|
110
111
|
closeAnnual: ["12-31"],
|
|
111
112
|
}).map((d) => [d.severity, d.code, d.path]);
|
|
112
|
-
// [["warning", "unknown-option", "closeAnnual"], ["info", "redundant", "
|
|
113
|
+
// [["warning", "unknown-option", "closeAnnual"], ["info", "redundant", "closedRecurringRules[0]"]]
|
|
113
114
|
```
|
|
114
115
|
|
|
115
116
|
`diagnoseCalendar` and `diagnoseSchedule` return every problem in the options without throwing: typos (with a suggestion), rules that never match, rules shadowed by earlier ones, rules whose removal changes nothing, options with no business day, and, with `{ asOf }`, rules that have ended. `assert.deepEqual(diagnoseCalendar(options), [])` in a test keeps options honest. Details: [Option diagnostics](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#option-diagnostics), [Errors](https://github.com/inohan77/bizdays-toolkit/blob/main/docs/guide.md#errors).
|
package/dist/core/calendar.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 祝日と、会社・店舗の休業日を組み合わせた営業日カレンダー。
|
|
3
|
-
*
|
|
4
|
-
* 1 日の判定は次の優先順位で行う(上が優先):
|
|
5
|
-
* 1. openDates … 臨時営業日(個別の日付・期間)
|
|
6
|
-
* 2. closedDates … 臨時休業日(個別の日付・期間)
|
|
7
|
-
* 3. closedAnnual … 毎年の休業日(月日・月日の期間。年をまたぐ期間も可)
|
|
8
|
-
* 4. openRecurring・closedRecurring(onHolidayRule: "over-holiday")… 祝日でも当てはめる繰り返しの規則
|
|
9
|
-
* 5. 祝日 … holidayPolicy に従う(closed: 休業 / open: 営業 / ignore: 判定に使わない)
|
|
10
|
-
* 6. openRecurring・closedRecurring("under-holiday"・"after-holiday" の振替先)… 繰り返しの規則
|
|
11
|
-
* 7. closedWeekdays … 定休日の曜日
|
|
12
|
-
* 8. それ以外は営業日
|
|
13
|
-
*
|
|
14
|
-
* 繰り返しの規則は openRecurring が closedRecurring より優先。"after-holiday" の規則は、
|
|
15
|
-
* 祝日には当てはめず、その日以降で最初の祝日でない日に当てはめる(振替)
|
|
3
|
+
* 1 日の判定の優先順位は docs/guide.md の「Business-day calendars」と docs/decisions.md の 12 番。
|
|
16
4
|
*
|
|
17
5
|
* 内部では、営業日かどうか(真偽値)を返すスケジュール(createSchedule)として作っている。
|
|
18
6
|
* 営業日の探索・調整・月の営業日などの機能は buildCalendar に切り出し、作成済みのカレンダーを
|
|
@@ -71,29 +59,41 @@ export interface CalendarOptions<Kind extends string = string> extends HolidaySo
|
|
|
71
59
|
/** 定休日の曜日(0 = 日曜日) */
|
|
72
60
|
readonly closedWeekdays?: readonly Weekday[];
|
|
73
61
|
/** 毎年の休業日(有効期間 effectiveFrom・effectiveTo を付けられる) */
|
|
74
|
-
readonly
|
|
62
|
+
readonly closedAnnualDates?: readonly (AnnualDate | AnnualRange)[];
|
|
75
63
|
/** 臨時休業日 */
|
|
76
64
|
readonly closedDates?: readonly (SpecificDate | DateRange)[];
|
|
77
65
|
/** 臨時営業日(ほかのすべての規則より優先) */
|
|
78
66
|
readonly openDates?: readonly (SpecificDate | DateRange)[];
|
|
79
67
|
/**
|
|
80
68
|
* 繰り返しの休業日(毎週・隔週などの周期・毎月の第 n 曜日・毎月の日)。
|
|
81
|
-
* 祝日に当たったときの扱いは規則ごとに
|
|
69
|
+
* 祝日に当たったときの扱いは規則ごとに holidayOverlapPolicy で指定する(既定: "under-holiday")。
|
|
82
70
|
* 有効期間(effectiveFrom・effectiveTo)を付けると、期間の外では書かれていないのと同じに扱う
|
|
83
71
|
*/
|
|
84
|
-
readonly
|
|
85
|
-
/** 繰り返しの営業日。
|
|
86
|
-
readonly
|
|
72
|
+
readonly closedRecurringRules?: readonly RecurringRule<Kind>[];
|
|
73
|
+
/** 繰り返しの営業日。closedRecurringRules と同じ日に当たる場合はこちらが優先 */
|
|
74
|
+
readonly openRecurringRules?: readonly RecurringRule<Kind>[];
|
|
87
75
|
/** 祝日の扱い(既定: "closed") */
|
|
88
76
|
readonly holidayPolicy?: HolidayPolicy;
|
|
89
77
|
/** 営業日を探すときに調べる最大日数(既定: 3660)。超えたら Error */
|
|
78
|
+
readonly searchDayLimit?: number;
|
|
79
|
+
/** @deprecated 0.30.0 で closedAnnualDates に改名した。1.0.0 で削除する */
|
|
80
|
+
readonly closedAnnual?: readonly (AnnualDate | AnnualRange)[];
|
|
81
|
+
/** @deprecated 0.30.0 で closedRecurringRules に改名した。1.0.0 で削除する */
|
|
82
|
+
readonly closedRecurring?: readonly RecurringRule<Kind>[];
|
|
83
|
+
/** @deprecated 0.30.0 で openRecurringRules に改名した。1.0.0 で削除する */
|
|
84
|
+
readonly openRecurring?: readonly RecurringRule<Kind>[];
|
|
85
|
+
/** @deprecated 0.30.0 で searchDayLimit に改名した。1.0.0 で削除する */
|
|
90
86
|
readonly maxSearchDays?: number;
|
|
91
87
|
}
|
|
92
88
|
/**
|
|
93
89
|
* 営業・休業を決めた規則(既知の値)。
|
|
94
90
|
* @public
|
|
95
91
|
*/
|
|
96
|
-
export type KnownDayReason = "open-date" | "closed-date" | "open-annual" | "closed-annual" | "open-recurring" | "closed-recurring" | "holiday" | "closed-weekday"
|
|
92
|
+
export type KnownDayReason = "open-date" | "closed-date" | "open-annual" | "closed-annual" | "open-recurring" | "closed-recurring" | "holiday" | "closed-weekday"
|
|
93
|
+
/** どの設定にも当たらなかった営業日 */
|
|
94
|
+
| "default"
|
|
95
|
+
/** スケジュールから作ったカレンダーで、曜日の値で営業日になった日 */
|
|
96
|
+
| "open-weekday";
|
|
97
97
|
/**
|
|
98
98
|
* 営業・休業を決めた規則。将来の版で値が増えることがあるので、分岐では「その他」も扱うこと。
|
|
99
99
|
* すべての値を網羅したことを型で確かめたい場合は KnownDayReason を使う。
|
|
@@ -107,6 +107,9 @@ export type DayReason = KnownDayReason | (string & {});
|
|
|
107
107
|
export interface DayInfo<Kind extends string = string> {
|
|
108
108
|
readonly date: DateString;
|
|
109
109
|
readonly weekday: Weekday;
|
|
110
|
+
/** 営業日か */
|
|
111
|
+
readonly open: boolean;
|
|
112
|
+
/** @deprecated 0.30.0 で open に改名した(同じ値)。1.0.0 で削除する */
|
|
110
113
|
readonly businessDay: boolean;
|
|
111
114
|
/** 判定を決めた規則 */
|
|
112
115
|
readonly reason: DayReason;
|
|
@@ -114,21 +117,23 @@ export interface DayInfo<Kind extends string = string> {
|
|
|
114
117
|
readonly name?: string;
|
|
115
118
|
/** その日が祝日なら祝日(holidayPolicy に関係なく付く) */
|
|
116
119
|
readonly holiday?: Holiday<Kind>;
|
|
117
|
-
/** 祝日から振り替えられた繰り返しの規則で決まった場合、振替の元の日付(
|
|
120
|
+
/** 祝日から振り替えられた繰り返しの規則で決まった場合、振替の元の日付(holidayOverlapPolicy: "after-holiday") */
|
|
118
121
|
readonly shiftedFrom?: DateString;
|
|
119
122
|
/**
|
|
120
|
-
* 判定を決めた規則の設定の中の位置(規則の診断の path と同じ形。例: "
|
|
123
|
+
* 判定を決めた規則の設定の中の位置(規則の診断の path と同じ形。例: "closedRecurringRules[0]")。
|
|
121
124
|
* 個別の日付・毎年の休業日・繰り返しの規則(振替先を含む)で決まった日にだけ付き、祝日・定休日の曜日で決まった日には付かない
|
|
122
125
|
*/
|
|
126
|
+
readonly optionPath?: string;
|
|
127
|
+
/** @deprecated 0.30.0 で optionPath に改名した(同じ値)。1.0.0 で削除する */
|
|
123
128
|
readonly rulePath?: string;
|
|
124
129
|
/**
|
|
125
130
|
* 合成したカレンダー(combineCalendars)で、判定を決めたカレンダーの番号(渡した配列の位置)。
|
|
126
|
-
* reason・name・shiftedFrom・
|
|
131
|
+
* reason・name・shiftedFrom・optionPath はそのカレンダーの結果。合成していないカレンダーでは付かない
|
|
127
132
|
*/
|
|
128
133
|
readonly decidedBy?: number;
|
|
129
134
|
/**
|
|
130
135
|
* 合成したカレンダーで、判定を決めたカレンダーまでの番号の列(外側から順)。入れ子でない合成では長さ 1 で、
|
|
131
|
-
* 先頭は decidedBy と同じ。合成したカレンダーをさらに合成したとき、
|
|
136
|
+
* 先頭は decidedBy と同じ。合成したカレンダーをさらに合成したとき、optionPath がどのカレンダーの設定の位置かを
|
|
132
137
|
* 結果だけから辿れる(例: [0, 1] は 0 番のカレンダーの中の 1 番)。合成していないカレンダーでは付かない
|
|
133
138
|
*/
|
|
134
139
|
readonly decidedByPath?: readonly number[];
|
|
@@ -137,20 +142,22 @@ export interface DayInfo<Kind extends string = string> {
|
|
|
137
142
|
* カレンダーの合成のオプション。
|
|
138
143
|
* @public
|
|
139
144
|
*/
|
|
140
|
-
export interface
|
|
145
|
+
export interface CombineCalendarsOptions {
|
|
141
146
|
/**
|
|
142
147
|
* 営業日とする条件。"all": すべてのカレンダーが営業日(例: 自社と銀行の両方が営業している日)/
|
|
143
148
|
* "any": いずれかのカレンダーが営業日(例: 複数の店舗のどこかが開いている日)
|
|
144
149
|
*/
|
|
145
|
-
readonly
|
|
150
|
+
readonly open: "all" | "any";
|
|
146
151
|
/** 営業日を探すときに調べる最大日数(既定: 3660)。超えたら Error */
|
|
152
|
+
readonly searchDayLimit?: number;
|
|
153
|
+
/** @deprecated 0.30.0 で searchDayLimit に改名した。1.0.0 で削除する */
|
|
147
154
|
readonly maxSearchDays?: number;
|
|
148
155
|
}
|
|
149
156
|
/**
|
|
150
157
|
* 営業日を探すときのオプション。
|
|
151
158
|
* @public
|
|
152
159
|
*/
|
|
153
|
-
export interface
|
|
160
|
+
export interface BusinessDayOnOrAfterOptions {
|
|
154
161
|
/**
|
|
155
162
|
* 締め時刻 "HH:mm"(カレンダーのタイムゾーン)。
|
|
156
163
|
* 入力の時刻がこの時刻以降なら、その日は対象にしない。時刻を持たない入力(暦日の文字列・Temporal の PlainDate など)
|
|
@@ -166,6 +173,7 @@ export interface BusinessDayOptions {
|
|
|
166
173
|
* - "modified-preceding": 前営業日。ただし月が変わるなら翌営業日
|
|
167
174
|
*
|
|
168
175
|
* 月が変わるかは、調整する前の日付の月と比べる。
|
|
176
|
+
* @namingSource isda
|
|
169
177
|
* @public
|
|
170
178
|
*/
|
|
171
179
|
export type BusinessDayConvention = "following" | "preceding" | "modified-following" | "modified-preceding";
|
|
@@ -183,7 +191,7 @@ export interface AdjustOptions {
|
|
|
183
191
|
*/
|
|
184
192
|
export interface DueDateOptions {
|
|
185
193
|
/** 期日の日(1〜31、-1 は末日)。その月にない日(2 月 30 日など)は末日に読み替える */
|
|
186
|
-
readonly
|
|
194
|
+
readonly dayOfMonth: DayOfMonth;
|
|
187
195
|
/** 期日が休業日のときの調整の方法 */
|
|
188
196
|
readonly convention: BusinessDayConvention;
|
|
189
197
|
}
|
|
@@ -193,6 +201,8 @@ export interface DueDateOptions {
|
|
|
193
201
|
*/
|
|
194
202
|
export interface Calendar<Kind extends string = string> extends HolidayLookup<Kind> {
|
|
195
203
|
/** 1 日分の判定結果(営業日か・理由・祝日) */
|
|
204
|
+
dayInfoOn(input: DateInput): DayInfo<Kind>;
|
|
205
|
+
/** @deprecated 0.30.0 で dayInfoOn に改名した。1.0.0 で削除する */
|
|
196
206
|
dayInfo(input: DateInput): DayInfo<Kind>;
|
|
197
207
|
/** 期間内の日ごとの判定結果(両端を含む。from が to より後ならエラー) */
|
|
198
208
|
daysBetween(from: DateInput, to: DateInput): readonly DayInfo<Kind>[];
|
|
@@ -206,7 +216,7 @@ export interface Calendar<Kind extends string = string> extends HolidayLookup<Ki
|
|
|
206
216
|
* 入力日が営業日ならその日、そうでなければ翌営業日。cutoff で締め時刻を指定できる
|
|
207
217
|
* (cutoff を指定するときの入力は、時刻を持つもの。時刻のない入力と組み合わせると invalid-argument)
|
|
208
218
|
*/
|
|
209
|
-
businessDayOnOrAfter(input: DateInput, options?:
|
|
219
|
+
businessDayOnOrAfter(input: DateInput, options?: BusinessDayOnOrAfterOptions): DateString;
|
|
210
220
|
/** 入力日が営業日ならその日、そうでなければ前営業日 */
|
|
211
221
|
businessDayOnOrBefore(input: DateInput): DateString;
|
|
212
222
|
/**
|
|
@@ -215,8 +225,12 @@ export interface Calendar<Kind extends string = string> extends HolidayLookup<Ki
|
|
|
215
225
|
*/
|
|
216
226
|
addBusinessDays(input: DateInput, n: number): DateString;
|
|
217
227
|
/** from 以上 to 未満の営業日の数(to が前なら負) */
|
|
218
|
-
|
|
228
|
+
diffBusinessDays(from: DateInput, to: DateInput): number;
|
|
219
229
|
/** 期間内の営業日(両端を含む) */
|
|
230
|
+
businessDatesBetween(from: DateInput, to: DateInput): readonly DateString[];
|
|
231
|
+
/** @deprecated 0.30.0 で diffBusinessDays に改名した。1.0.0 で削除する */
|
|
232
|
+
businessDaysBetween(from: DateInput, to: DateInput): number;
|
|
233
|
+
/** @deprecated 0.30.0 で businessDatesBetween に改名した。1.0.0 で削除する */
|
|
220
234
|
listBusinessDays(from: DateInput, to: DateInput): readonly DateString[];
|
|
221
235
|
/**
|
|
222
236
|
* 営業日ならその日、休業日なら convention に従って調整した営業日。
|
|
@@ -233,7 +247,7 @@ export interface Calendar<Kind extends string = string> extends HolidayLookup<Ki
|
|
|
233
247
|
/** 月 "YYYY-MM" の最後の営業日(nthBusinessDayOfMonth(month, -1)) */
|
|
234
248
|
lastBusinessDayOfMonth(month: MonthString): DateString;
|
|
235
249
|
/**
|
|
236
|
-
* 月 "YYYY-MM" の
|
|
250
|
+
* 月 "YYYY-MM" の dayOfMonth 日を期日とし、休業日なら convention で調整した日。
|
|
237
251
|
* その月にない日は末日に読み替えてから調整する(例: 2 月の 30 日払いは 2 月末日)
|
|
238
252
|
*/
|
|
239
253
|
dueDate(month: MonthString, options: DueDateOptions): DateString;
|
|
@@ -243,21 +257,21 @@ export interface Calendar<Kind extends string = string> extends HolidayLookup<Ki
|
|
|
243
257
|
* 日付が D(m) 以下となる最小の m を返す。前月の締め日から当月の締め日までに営業日がない月(長期休業)は
|
|
244
258
|
* 固有の期間を持たず、その日は次の月に属する
|
|
245
259
|
*/
|
|
246
|
-
closingMonth(input: DateInput,
|
|
260
|
+
closingMonth(input: DateInput, closingDayOfMonth: number, options: AdjustOptions): MonthString;
|
|
247
261
|
/**
|
|
248
262
|
* 営業日を考慮した締め日で区切ったときの、その月分の期間(両端を含む暦日。前月の調整後の締め日の翌日から
|
|
249
263
|
* 当月の調整後の締め日まで)。暦日を渡すと、その日が属する期間(closingMonth で求めた月の期間)。
|
|
250
264
|
* 月を渡して、その月に固有の期間がない(前月の締め日から当月の締め日までに営業日がない)ときは
|
|
251
265
|
* code: "no-business-day" の Error。返す値は変更できず、name は付かない
|
|
252
266
|
*/
|
|
253
|
-
closingPeriod(input: DateInput | MonthString,
|
|
267
|
+
closingPeriod(input: DateInput | MonthString, closingDayOfMonth: number, options: AdjustOptions): {
|
|
254
268
|
readonly from: DateString;
|
|
255
269
|
readonly to: DateString;
|
|
256
270
|
};
|
|
257
271
|
}
|
|
258
272
|
interface CompiledCalendar<Kind extends string> {
|
|
259
273
|
readonly schedule: CompiledSchedule<boolean, Kind>;
|
|
260
|
-
readonly
|
|
274
|
+
readonly searchDayLimit: number;
|
|
261
275
|
}
|
|
262
276
|
/** @internal 営業日カレンダーの設定を検証して取り込む(誤りは c に集める) */
|
|
263
277
|
export declare function compileCalendarOptions<Kind extends string>(c: IssueCollector, options: unknown): CompiledCalendar<Kind> | undefined;
|
|
@@ -273,7 +287,7 @@ export declare function createCalendar<Kind extends string = string>(options?: C
|
|
|
273
287
|
* 作成済みの営業日カレンダーを合成する。"all" はすべてのカレンダーが営業している日、"any" はいずれかが
|
|
274
288
|
* 営業している日を営業日とする。返すのは通常の営業日カレンダーで、営業日の加減算・調整・期日などが合成結果で動く。
|
|
275
289
|
*
|
|
276
|
-
* -
|
|
290
|
+
* - dayInfoOn の reason・name・shiftedFrom・optionPath は、合成結果と同じ判定をした最初のカレンダーの結果で、
|
|
277
291
|
* その番号を decidedBy で返す。入れ子の合成では、内側の番号まで含めた列を decidedByPath で返す。
|
|
278
292
|
* holiday・isHoliday などは、すべてのカレンダーの祝日の提供元の和集合で判定する
|
|
279
293
|
* - タイムゾーンはすべてのカレンダーで同じでなければならない(time-zone-conflict)。
|
|
@@ -282,22 +296,40 @@ export declare function createCalendar<Kind extends string = string>(options?: C
|
|
|
282
296
|
* 元のカレンダーの設定をそれぞれ診断する
|
|
283
297
|
* @public
|
|
284
298
|
*/
|
|
285
|
-
export declare function combineCalendars<Kind extends string = string>(calendars: readonly Calendar<Kind>[], options:
|
|
299
|
+
export declare function combineCalendars<Kind extends string = string>(calendars: readonly Calendar<Kind>[], options: CombineCalendarsOptions): Calendar<Kind>;
|
|
300
|
+
/**
|
|
301
|
+
* スケジュールから作る営業日カレンダーのオプション。
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
export interface CalendarFromScheduleOptions {
|
|
305
|
+
/** 営業日を探すときに調べる最大日数(既定: 3660)。超えたら Error */
|
|
306
|
+
readonly searchDayLimit?: number;
|
|
307
|
+
/** @deprecated 0.30.0 で searchDayLimit に改名した。1.0.0 で削除する */
|
|
308
|
+
readonly maxSearchDays?: number;
|
|
309
|
+
}
|
|
286
310
|
/**
|
|
287
311
|
* スケジュール(createSchedule)から営業日カレンダーを作る。isOpen が true を返す値の日を営業日とする。
|
|
288
312
|
* 営業時間表のような日ごとの値が設定の正本で、営業日の計算(加減算・調整・期日など)も同じ設定から行いたいときに使う
|
|
289
313
|
* (営業日カレンダーを別に書いて同期を取る必要がなくなる)。
|
|
290
314
|
*
|
|
291
315
|
* - isOpen は値だけで決まる純粋な関数であること(日付・時刻・外部の状態を見ない)。営業日の探索は isOpen を繰り返し呼ぶので、
|
|
292
|
-
* 結果が変わる関数を渡すと探索の結果が呼ぶたびに変わる。日付で変えたい条件は、スケジュールの規則(dates・
|
|
293
|
-
* -
|
|
294
|
-
* "closed-annual"、recurring → "open-recurring"/"closed-recurring"、holiday → "holiday"、weekday → "
|
|
295
|
-
* name・holiday・shiftedFrom・
|
|
296
|
-
* - 祝日の判定(holiday・isHoliday など)・タイムゾーン・
|
|
316
|
+
* 結果が変わる関数を渡すと探索の結果が呼ぶたびに変わる。日付で変えたい条件は、スケジュールの規則(dates・recurringRules)に書く
|
|
317
|
+
* - dayInfoOn の reason は、スケジュールの reason と営業・休業の組み合わせ(date → "open-date"/"closed-date"、annual → "open-annual"/
|
|
318
|
+
* "closed-annual"、recurring → "open-recurring"/"closed-recurring"、holiday → "holiday"、weekday → "open-weekday"/"closed-weekday")。
|
|
319
|
+
* name・holiday・shiftedFrom・optionPath はスケジュールの結果をそのまま引き継ぐ
|
|
320
|
+
* - 祝日の判定(holiday・isHoliday など)・タイムゾーン・outOfRangePolicy はスケジュールのもの。規則の診断(diagnoseSchedule)は
|
|
297
321
|
* スケジュールの設定に対して行う
|
|
298
322
|
* @public
|
|
299
323
|
*/
|
|
300
|
-
export declare function createCalendarFromSchedule<
|
|
301
|
-
|
|
302
|
-
|
|
324
|
+
export declare function createCalendarFromSchedule<Value, Kind extends string = string>(schedule: Schedule<Value, Kind>, isOpen: (value: Value) => boolean, options?: CalendarFromScheduleOptions): Calendar<Kind>;
|
|
325
|
+
/**
|
|
326
|
+
* @deprecated 0.30.0 で CombineCalendarsOptions に改名した。1.0.0 で削除する
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
export type CombineOptions = CombineCalendarsOptions;
|
|
330
|
+
/**
|
|
331
|
+
* @deprecated 0.30.0 で BusinessDayOnOrAfterOptions に改名した。1.0.0 で削除する
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
export type BusinessDayOptions = BusinessDayOnOrAfterOptions;
|
|
303
335
|
export {};
|