From b984a4aace5c45f3bf276e554139b4534471e6df Mon Sep 17 00:00:00 2001 From: Khalid Williams Date: Fri, 19 Apr 2024 14:24:39 -0600 Subject: [PATCH 1/2] fix: export subBusinessDays as a named export --- src/businessDaysUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/businessDaysUtils.ts b/src/businessDaysUtils.ts index 37ba325..4442fb4 100644 --- a/src/businessDaysUtils.ts +++ b/src/businessDaysUtils.ts @@ -115,7 +115,7 @@ export function addBusinessDays( * const result = subBusinessDays(new Date(2014, 8, 1), 10) * //=> Mon Aug 18 2014 00:00:00 (skipped weekend days) */ -export default function subBusinessDays( +export function subBusinessDays( dirtyDate: Date | number, dirtyAmount: number, dirtyOptions?: { From 30fec6a970bec85ceb5695024aaa270aee1c2b41 Mon Sep 17 00:00:00 2001 From: Khalid Williams Date: Fri, 19 Apr 2024 14:28:27 -0600 Subject: [PATCH 2/2] Update import type --- src/businessDaysUtils.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/businessDaysUtils.test.ts b/src/businessDaysUtils.test.ts index 77e85bf..fe8e249 100644 --- a/src/businessDaysUtils.test.ts +++ b/src/businessDaysUtils.test.ts @@ -1,4 +1,4 @@ -import subBusinessDays, { addBusinessDays, differenceInBusinessDays } from "./businessDaysUtils"; +import { addBusinessDays, differenceInBusinessDays, subBusinessDays } from "./businessDaysUtils"; describe("businessDaysUtils", () => { describe("addBusinessDays", () => {