soff-date 1.2.4 → 1.3.0

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.
Files changed (59) hide show
  1. package/dist/ar-Br72xIAo.d.ts +31 -0
  2. package/dist/ar-BzotUQyb.d.cts +31 -0
  3. package/dist/br-6mG4bT2v.d.cts +31 -0
  4. package/dist/br-BZijEnzK.d.ts +31 -0
  5. package/dist/co-BV19Ey8m.d.cts +31 -0
  6. package/dist/co-DqYkl-kH.d.ts +31 -0
  7. package/dist/locales/ar.cjs +1 -1
  8. package/dist/locales/ar.cjs.map +1 -1
  9. package/dist/locales/ar.d.cts +2 -1
  10. package/dist/locales/ar.d.ts +2 -1
  11. package/dist/locales/ar.js +1 -1
  12. package/dist/locales/ar.js.map +1 -1
  13. package/dist/locales/br.cjs +1 -1
  14. package/dist/locales/br.cjs.map +1 -1
  15. package/dist/locales/br.d.cts +2 -1
  16. package/dist/locales/br.d.ts +2 -1
  17. package/dist/locales/br.js +1 -1
  18. package/dist/locales/br.js.map +1 -1
  19. package/dist/locales/co.cjs +1 -1
  20. package/dist/locales/co.cjs.map +1 -1
  21. package/dist/locales/co.d.cts +2 -1
  22. package/dist/locales/co.d.ts +2 -1
  23. package/dist/locales/co.js +1 -1
  24. package/dist/locales/co.js.map +1 -1
  25. package/dist/locales/index.cjs +1 -1
  26. package/dist/locales/index.cjs.map +1 -1
  27. package/dist/locales/index.d.cts +40 -49
  28. package/dist/locales/index.d.ts +40 -49
  29. package/dist/locales/index.js +1 -1
  30. package/dist/locales/index.js.map +1 -1
  31. package/dist/locales/mx.cjs +1 -1
  32. package/dist/locales/mx.cjs.map +1 -1
  33. package/dist/locales/mx.d.cts +2 -1
  34. package/dist/locales/mx.d.ts +2 -1
  35. package/dist/locales/mx.js +1 -1
  36. package/dist/locales/mx.js.map +1 -1
  37. package/dist/locales/us.cjs +1 -1
  38. package/dist/locales/us.cjs.map +1 -1
  39. package/dist/locales/us.d.cts +2 -1
  40. package/dist/locales/us.d.ts +2 -1
  41. package/dist/locales/us.js +1 -1
  42. package/dist/locales/us.js.map +1 -1
  43. package/dist/manager-cCTMxYzq.d.cts +7 -0
  44. package/dist/manager-t1ZTM9nD.d.ts +7 -0
  45. package/dist/mx-BkWemPZ9.d.cts +31 -0
  46. package/dist/mx-CWOzeLjN.d.ts +31 -0
  47. package/dist/us-CIIYd5iU.d.ts +31 -0
  48. package/dist/us-CLaBwY8j.d.cts +31 -0
  49. package/package.json +1 -1
  50. package/dist/ar-CNAX4AXU.d.cts +0 -34
  51. package/dist/ar-_eSj0FME.d.ts +0 -34
  52. package/dist/br-BIyP6mEM.d.cts +0 -34
  53. package/dist/br-Di1CEYYU.d.ts +0 -34
  54. package/dist/co-Bb6COouQ.d.ts +0 -34
  55. package/dist/co-dfSeYeOC.d.cts +0 -34
  56. package/dist/mx-Dkg3F0zK.d.cts +0 -34
  57. package/dist/mx-DkxwI7mx.d.ts +0 -34
  58. package/dist/us-C_k8GbK5.d.cts +0 -34
  59. package/dist/us-D2p4ot2H.d.ts +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soff-date",
3
- "version": "1.2.4",
3
+ "version": "1.3.0",
4
4
  "description": "Lightweight, tree-shakeable holiday calculator with algorithmic date computation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.cjs';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type ar_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const ar_businessDays: typeof businessDays;
23
- declare const ar_businessHours: typeof businessHours;
24
- declare const ar_diffBusinessDays: typeof diffBusinessDays;
25
- declare const ar_diffBusinessHours: typeof diffBusinessHours;
26
- declare const ar_getHolidays: typeof getHolidays;
27
- declare const ar_getNextHoliday: typeof getNextHoliday;
28
- declare const ar_isBusinessDay: typeof isBusinessDay;
29
- declare const ar_isHoliday: typeof isHoliday;
30
- declare namespace ar {
31
- export { type ar_GetHolidaysOptions as GetHolidaysOptions, ar_businessDays as businessDays, ar_businessHours as businessHours, ar_diffBusinessDays as diffBusinessDays, ar_diffBusinessHours as diffBusinessHours, ar_getHolidays as getHolidays, ar_getNextHoliday as getNextHoliday, ar_isBusinessDay as isBusinessDay, ar_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, ar as a, businessDays as b, businessHours as c, diffBusinessDays as d, diffBusinessHours as e, getNextHoliday as f, getHolidays as g, isHoliday as h, isBusinessDay as i };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.js';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type ar_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const ar_businessDays: typeof businessDays;
23
- declare const ar_businessHours: typeof businessHours;
24
- declare const ar_diffBusinessDays: typeof diffBusinessDays;
25
- declare const ar_diffBusinessHours: typeof diffBusinessHours;
26
- declare const ar_getHolidays: typeof getHolidays;
27
- declare const ar_getNextHoliday: typeof getNextHoliday;
28
- declare const ar_isBusinessDay: typeof isBusinessDay;
29
- declare const ar_isHoliday: typeof isHoliday;
30
- declare namespace ar {
31
- export { type ar_GetHolidaysOptions as GetHolidaysOptions, ar_businessDays as businessDays, ar_businessHours as businessHours, ar_diffBusinessDays as diffBusinessDays, ar_diffBusinessHours as diffBusinessHours, ar_getHolidays as getHolidays, ar_getNextHoliday as getNextHoliday, ar_isBusinessDay as isBusinessDay, ar_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, ar as a, businessDays as b, businessHours as c, diffBusinessDays as d, diffBusinessHours as e, getNextHoliday as f, getHolidays as g, isHoliday as h, isBusinessDay as i };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.cjs';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type br_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const br_businessDays: typeof businessDays;
23
- declare const br_businessHours: typeof businessHours;
24
- declare const br_diffBusinessDays: typeof diffBusinessDays;
25
- declare const br_diffBusinessHours: typeof diffBusinessHours;
26
- declare const br_getHolidays: typeof getHolidays;
27
- declare const br_getNextHoliday: typeof getNextHoliday;
28
- declare const br_isBusinessDay: typeof isBusinessDay;
29
- declare const br_isHoliday: typeof isHoliday;
30
- declare namespace br {
31
- export { type br_GetHolidaysOptions as GetHolidaysOptions, br_businessDays as businessDays, br_businessHours as businessHours, br_diffBusinessDays as diffBusinessDays, br_diffBusinessHours as diffBusinessHours, br_getHolidays as getHolidays, br_getNextHoliday as getNextHoliday, br_isBusinessDay as isBusinessDay, br_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessDays as a, br as b, businessHours as c, diffBusinessDays as d, diffBusinessHours as e, getNextHoliday as f, getHolidays as g, isHoliday as h, isBusinessDay as i };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.js';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type br_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const br_businessDays: typeof businessDays;
23
- declare const br_businessHours: typeof businessHours;
24
- declare const br_diffBusinessDays: typeof diffBusinessDays;
25
- declare const br_diffBusinessHours: typeof diffBusinessHours;
26
- declare const br_getHolidays: typeof getHolidays;
27
- declare const br_getNextHoliday: typeof getNextHoliday;
28
- declare const br_isBusinessDay: typeof isBusinessDay;
29
- declare const br_isHoliday: typeof isHoliday;
30
- declare namespace br {
31
- export { type br_GetHolidaysOptions as GetHolidaysOptions, br_businessDays as businessDays, br_businessHours as businessHours, br_diffBusinessDays as diffBusinessDays, br_diffBusinessHours as diffBusinessHours, br_getHolidays as getHolidays, br_getNextHoliday as getNextHoliday, br_isBusinessDay as isBusinessDay, br_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessDays as a, br as b, businessHours as c, diffBusinessDays as d, diffBusinessHours as e, getNextHoliday as f, getHolidays as g, isHoliday as h, isBusinessDay as i };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.js';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type co_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const co_businessDays: typeof businessDays;
23
- declare const co_businessHours: typeof businessHours;
24
- declare const co_diffBusinessDays: typeof diffBusinessDays;
25
- declare const co_diffBusinessHours: typeof diffBusinessHours;
26
- declare const co_getHolidays: typeof getHolidays;
27
- declare const co_getNextHoliday: typeof getNextHoliday;
28
- declare const co_isBusinessDay: typeof isBusinessDay;
29
- declare const co_isHoliday: typeof isHoliday;
30
- declare namespace co {
31
- export { type co_GetHolidaysOptions as GetHolidaysOptions, co_businessDays as businessDays, co_businessHours as businessHours, co_diffBusinessDays as diffBusinessDays, co_diffBusinessHours as diffBusinessHours, co_getHolidays as getHolidays, co_getNextHoliday as getNextHoliday, co_isBusinessDay as isBusinessDay, co_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessHours as a, businessDays as b, co as c, diffBusinessDays as d, diffBusinessHours as e, getNextHoliday as f, getHolidays as g, isHoliday as h, isBusinessDay as i };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.cjs';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type co_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const co_businessDays: typeof businessDays;
23
- declare const co_businessHours: typeof businessHours;
24
- declare const co_diffBusinessDays: typeof diffBusinessDays;
25
- declare const co_diffBusinessHours: typeof diffBusinessHours;
26
- declare const co_getHolidays: typeof getHolidays;
27
- declare const co_getNextHoliday: typeof getNextHoliday;
28
- declare const co_isBusinessDay: typeof isBusinessDay;
29
- declare const co_isHoliday: typeof isHoliday;
30
- declare namespace co {
31
- export { type co_GetHolidaysOptions as GetHolidaysOptions, co_businessDays as businessDays, co_businessHours as businessHours, co_diffBusinessDays as diffBusinessDays, co_diffBusinessHours as diffBusinessHours, co_getHolidays as getHolidays, co_getNextHoliday as getNextHoliday, co_isBusinessDay as isBusinessDay, co_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessHours as a, businessDays as b, co as c, diffBusinessDays as d, diffBusinessHours as e, getNextHoliday as f, getHolidays as g, isHoliday as h, isBusinessDay as i };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.cjs';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type mx_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const mx_businessDays: typeof businessDays;
23
- declare const mx_businessHours: typeof businessHours;
24
- declare const mx_diffBusinessDays: typeof diffBusinessDays;
25
- declare const mx_diffBusinessHours: typeof diffBusinessHours;
26
- declare const mx_getHolidays: typeof getHolidays;
27
- declare const mx_getNextHoliday: typeof getNextHoliday;
28
- declare const mx_isBusinessDay: typeof isBusinessDay;
29
- declare const mx_isHoliday: typeof isHoliday;
30
- declare namespace mx {
31
- export { type mx_GetHolidaysOptions as GetHolidaysOptions, mx_businessDays as businessDays, mx_businessHours as businessHours, mx_diffBusinessDays as diffBusinessDays, mx_diffBusinessHours as diffBusinessHours, mx_getHolidays as getHolidays, mx_getNextHoliday as getNextHoliday, mx_isBusinessDay as isBusinessDay, mx_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessHours as a, businessDays as b, diffBusinessHours as c, diffBusinessDays as d, getNextHoliday as e, isHoliday as f, getHolidays as g, isBusinessDay as i, mx as m };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.js';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type mx_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const mx_businessDays: typeof businessDays;
23
- declare const mx_businessHours: typeof businessHours;
24
- declare const mx_diffBusinessDays: typeof diffBusinessDays;
25
- declare const mx_diffBusinessHours: typeof diffBusinessHours;
26
- declare const mx_getHolidays: typeof getHolidays;
27
- declare const mx_getNextHoliday: typeof getNextHoliday;
28
- declare const mx_isBusinessDay: typeof isBusinessDay;
29
- declare const mx_isHoliday: typeof isHoliday;
30
- declare namespace mx {
31
- export { type mx_GetHolidaysOptions as GetHolidaysOptions, mx_businessDays as businessDays, mx_businessHours as businessHours, mx_diffBusinessDays as diffBusinessDays, mx_diffBusinessHours as diffBusinessHours, mx_getHolidays as getHolidays, mx_getNextHoliday as getNextHoliday, mx_isBusinessDay as isBusinessDay, mx_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessHours as a, businessDays as b, diffBusinessHours as c, diffBusinessDays as d, getNextHoliday as e, isHoliday as f, getHolidays as g, isBusinessDay as i, mx as m };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.cjs';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type us_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const us_businessDays: typeof businessDays;
23
- declare const us_businessHours: typeof businessHours;
24
- declare const us_diffBusinessDays: typeof diffBusinessDays;
25
- declare const us_diffBusinessHours: typeof diffBusinessHours;
26
- declare const us_getHolidays: typeof getHolidays;
27
- declare const us_getNextHoliday: typeof getNextHoliday;
28
- declare const us_isBusinessDay: typeof isBusinessDay;
29
- declare const us_isHoliday: typeof isHoliday;
30
- declare namespace us {
31
- export { type us_GetHolidaysOptions as GetHolidaysOptions, us_businessDays as businessDays, us_businessHours as businessHours, us_diffBusinessDays as diffBusinessDays, us_diffBusinessHours as diffBusinessHours, us_getHolidays as getHolidays, us_getNextHoliday as getNextHoliday, us_isBusinessDay as isBusinessDay, us_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessHours as a, businessDays as b, diffBusinessHours as c, diffBusinessDays as d, getNextHoliday as e, isHoliday as f, getHolidays as g, isBusinessDay as i, us as u };
@@ -1,34 +0,0 @@
1
- import { HolidayNames, Holiday } from './core/types.js';
2
-
3
- interface GetHolidaysOptions {
4
- lang?: HolidayNames;
5
- }
6
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
7
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
8
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
9
- declare function isBusinessDay(date: Date): boolean;
10
- declare function businessDays(date: Date, amount: number): Date;
11
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
12
- declare function businessHours(date: Date, amount: number, businessHours?: {
13
- start: string;
14
- end: string;
15
- }): Date;
16
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
17
- start: string;
18
- end: string;
19
- }): number;
20
-
21
- type us_GetHolidaysOptions = GetHolidaysOptions;
22
- declare const us_businessDays: typeof businessDays;
23
- declare const us_businessHours: typeof businessHours;
24
- declare const us_diffBusinessDays: typeof diffBusinessDays;
25
- declare const us_diffBusinessHours: typeof diffBusinessHours;
26
- declare const us_getHolidays: typeof getHolidays;
27
- declare const us_getNextHoliday: typeof getNextHoliday;
28
- declare const us_isBusinessDay: typeof isBusinessDay;
29
- declare const us_isHoliday: typeof isHoliday;
30
- declare namespace us {
31
- export { type us_GetHolidaysOptions as GetHolidaysOptions, us_businessDays as businessDays, us_businessHours as businessHours, us_diffBusinessDays as diffBusinessDays, us_diffBusinessHours as diffBusinessHours, us_getHolidays as getHolidays, us_getNextHoliday as getNextHoliday, us_isBusinessDay as isBusinessDay, us_isHoliday as isHoliday };
32
- }
33
-
34
- export { type GetHolidaysOptions as G, businessHours as a, businessDays as b, diffBusinessHours as c, diffBusinessDays as d, getNextHoliday as e, isHoliday as f, getHolidays as g, isBusinessDay as i, us as u };