Skip to main content

isNeverEndingEvent

API Docs


Function: isNeverEndingEvent()

isNeverEndingEvent(rule): boolean

Defined in: src/utilities/recurringEventHelpers.ts:271

Determines if a recurrence rule represents a never-ending event. A never-ending event is one that has neither a count nor an endDate.

Parameters

rule

The recurrence rule to check.

baseRecurringEventId

string

byDay

string[] | null

byMonth

number[] | null

byMonthDay

number[] | null

count

number | null

createdAt

Date

creatorId

string

frequency

"DAILY" | "WEEKLY" | "MONTHLY" | "YEARLY"

id

string

interval

number

latestInstanceDate

Date

organizationId

string

originalSeriesId

string | null

recurrenceEndDate

Date | null

recurrenceRuleString

string

recurrenceStartDate

Date

updatedAt

Date | null

updaterId

string | null

Returns

boolean

true if the event is never-ending, otherwise false.