Skip to content

Commit

Permalink
Make config attributes optional for isPeriodBetweenStartAndEnd
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Baratta <[email protected]>
  • Loading branch information
giovannibaratta committed May 19, 2024
1 parent a7c9438 commit c4c3506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export function isSamePeriod(period1: Period, period2: Period): boolean {
}

export function isPeriodBetweenStartAndEnd(period: Period, start: Period, end: Period, config ?: {
includeStart: boolean,
includeEnd: boolean
includeStart?: boolean,
includeEnd?: boolean
}): boolean {

const includeStart = config?.includeStart ?? false
Expand Down

0 comments on commit c4c3506

Please sign in to comment.