Skip to content

Commit

Permalink
fix: return types
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioRobayo committed Mar 10, 2023
1 parent 9c33e0b commit 6027aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/getHoliday.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import { isSameDate } from "./helpers";
export function getHoliday(
date: Date,
options: { valueAsDate: true }
): ColombianHolidayWithNativeDate;
): ColombianHolidayWithNativeDate | null;
export function getHoliday(
date: Date,
options?: undefined | { valueAsDate: false }
): ColombianHoliday;
): ColombianHoliday | null;
export function getHoliday(
date: Date,
options: { valueAsDate: boolean } = { valueAsDate: false }
Expand Down

0 comments on commit 6027aef

Please sign in to comment.