diff --git a/src/pim-types.ts b/src/pim-types.ts index 344d0ac..5e2b9dd 100644 --- a/src/pim-types.ts +++ b/src/pim-types.ts @@ -111,6 +111,10 @@ export class TaskType extends EventType { return undefined as any; } + get allDay() { + return !!((this.startDate && this.startDate.isDate) || (this.dueDate && this.dueDate.isDate)); + } + public clone() { const ret = new TaskType(new ICAL.Component(this.component.toJSON())); ret.color = this.color;