Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type fixes and updates #217

Merged
merged 3 commits into from
Nov 12, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Types: specify possible values for transparency
  • Loading branch information
joelmukuthu committed Nov 11, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4daa01b97d3674ba0095400812922d6cded6cd1b
7 changes: 4 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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 {