Skip to content

Commit

Permalink
fix(calendar): fixed modifyEventWithOptions and related interface
Browse files Browse the repository at this point in the history
* Fixed Calendar modifyEventWithOptions method

* Updated comments
  • Loading branch information
cmaissan authored and ihadeed committed Sep 28, 2016
1 parent 16f05c3 commit 80ff2f3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/plugins/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Cordova, Plugin } from './plugin';
* @private
*/
export interface CalendarOptions {
id?: string;
firstReminderMinutes?: number;
secondReminderMinutes?: number;
recurrence?: string; // options are: 'daily', 'weekly', 'monthly', 'yearly'
Expand Down Expand Up @@ -336,7 +337,8 @@ export class Calendar {
* @param {string} [newNotes] The new event notes
* @param {Date} [newStartDate] The new event start date
* @param {Date} [newEndDate] The new event end date
* @param {CalendarOptions} [options] Additional options, see `getCalendarOptions`
* @param {CalendarOptions} [filterOptions] Event Options, see `getCalendarOptions`
* @param {CalendarOptions} [newOptions] New event options, see `getCalendarOptions`
* @return Returns a Promise
*/
@Cordova()
Expand All @@ -351,8 +353,9 @@ export class Calendar {
newNotes?: string,
newStartDate?: Date,
newEndDate?: Date,
options?: CalendarOptions
) { return; }
filterOptions?: CalendarOptions,
newOptions?: CalendarOptions
): Promise<any> { return; }

/**
* Delete an event.
Expand Down

0 comments on commit 80ff2f3

Please sign in to comment.