talawa-api / Exports / helpers/event/recurringEventHelpers/generateRecurrenceRuleString
Module: helpers/event/recurringEventHelpers/generateRecurrenceRuleString
Table of contents
Functions
Functions
generateRecurrenceRuleString
▸ generateRecurrenceRuleString(recurrenceRuleData
): string
This function generates the recurrence rule (rrule) string.
Parameters
Name | Type | Description |
---|---|---|
recurrenceRuleData | RecurrenceRuleInput | the recurrenceRuleInput provided in the args. |
Returns
string
The recurrence rule string that would be used to create a valid rrule object.
Remarks
The following steps are followed:
- Get the date strings for start and end of recurrence.
- Get the recurrence rules and make a recurrenceRuleString.
Defined in
src/helpers/event/recurringEventHelpers/generateRecurrenceRuleString.ts:16