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", () => { 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?: {