feat: continuing to work on implementing records methods

This commit is contained in:
StevanFreeborn
2023-02-10 00:49:50 -06:00
parent fde8b50717
commit 6ba77ce1d4
14 changed files with 494 additions and 105 deletions
+9 -9
View File
@@ -15,30 +15,30 @@ export class TimeSpanData {
/**
* @property {TimeSpanRecurrence} recurrence - The recurrence of the time span.
*/
public recurrence: TimeSpanRecurrenceType;
public recurrence: TimeSpanRecurrenceType | null;
/**
* @property {number} endAfterOccurrences - The number of occurrences of the time span.
*/
public endAfterOccurrences: number;
public endAfterOccurrences: number | null;
public endByDate: Date;
public endByDate: Date | null;
/**
* @constructor - Creates a new instance of TimeSpanData.
* @param {number} quantity - The quantity of the time span.
* @param {TimeSpanIncrement} increment - The increment of the time span.
* @param {TimeSpanRecurrenceType} recurrence - The recurrence of the time span.
* @param {number} endAfterOccurrences - The number of occurrences of the time span.
* @param {Date} endByDate - The end date of the time span.
* @param {TimeSpanRecurrenceType | null} recurrence - The recurrence of the time span.
* @param {number | null} endAfterOccurrences - The number of occurrences of the time span.
* @param {Date | null} endByDate - The end date of the time span.
* @returns {TimeSpanData} - A new instance of TimeSpanData.
*/
constructor(
quantity: number,
increment: TimeSpanIncrement,
recurrence: TimeSpanRecurrenceType,
endAfterOccurrences: number,
endByDate: Date
recurrence: TimeSpanRecurrenceType | null,
endAfterOccurrences: number | null,
endByDate: Date | null
) {
this.quantity = quantity;
this.increment = increment;