From a223e3e6d2d062e232af990e260f86d6a0fc444e Mon Sep 17 00:00:00 2001 From: Joel Mukuthu Date: Wed, 11 Nov 2020 15:21:38 +0300 Subject: [PATCH 1/3] Types: add rsvp to AttendeeData --- index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.d.ts b/index.d.ts index 6fc1ddde5..2f684902f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -110,6 +110,7 @@ declare module 'ical-generator' { role?: attendeeRole; status?: attendeeStatus; type?: attendeeType; + rsvp?: attendeeRsvp, delegatedTo?: ICalAttendee; delegatedFrom?: ICalAttendee; delegatesTo?: ICalAttendee; From 82b0b594cd59419c1966cbeb96111a99a83bab83 Mon Sep 17 00:00:00 2001 From: Joel Mukuthu Date: Wed, 11 Nov 2020 15:26:07 +0300 Subject: [PATCH 2/3] Types: specify possible values for status and busystatus --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2f684902f..b42d7971a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -76,8 +76,8 @@ declare module 'ical-generator' { organizer?: string | PersonData; attendees?: AttendeeData[]; alarms?: AlarmData[]; - status?: string; - busystatus?: string; + status?: status; + busystatus?: busystatus; timezone?: string; recurrenceId?: moment.Moment | Date | string; transparency?: string; From 4daa01b97d3674ba0095400812922d6cded6cd1b Mon Sep 17 00:00:00 2001 From: Joel Mukuthu Date: Wed, 11 Nov 2020 16:02:20 +0300 Subject: [PATCH 3/3] Types: specify possible values for transparency --- index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index b42d7971a..1a3e22ad5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -16,6 +16,7 @@ declare module 'ical-generator' { type repeatingFreq = 'SECONDLY' | 'MINUTELY' | 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY'; type status = 'CONFIRMED' | 'TENTATIVE' | 'CANCELLED'; type busystatus = 'FREE' | 'TENTATIVE' | 'BUSY' | 'OOF'; + type transparency = 'OPAQUE' | 'TRANSPARENT'; type day = 'SU' | 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA'; type attendeeRole = 'CHAIR' | 'REQ-PARTICIPANT' | 'OPT-PARTICIPANT' | 'NON-PARTICIPANT'; type attendeeStatus = 'ACCEPTED' | 'TENTATIVE' | 'DECLINED' | 'DELEGATED' | 'NEEDS-ACTION'; @@ -80,7 +81,7 @@ declare module 'ical-generator' { busystatus?: busystatus; timezone?: string; recurrenceId?: moment.Moment | Date | string; - transparency?: string; + transparency?: transparency; x?: { key: string, value: string }[]; } @@ -245,8 +246,8 @@ declare module 'ical-generator' { lastModified(): moment.Moment; lastModified(lastModified: string | moment.Moment | Date): ICalEvent; toJSON(): EventData; - transparency(): string; - transparency(transparency: string): string; + transparency(): transparency; + transparency(transparency: transparency): string; } class ICalAttendee {