From 80ff2f3bfad2bddecf442f6f6f9e4554ef9fb4dc Mon Sep 17 00:00:00 2001 From: Chris Maissan Date: Wed, 28 Sep 2016 13:54:19 -0400 Subject: [PATCH] fix(calendar): fixed modifyEventWithOptions and related interface * Fixed Calendar modifyEventWithOptions method * Updated comments --- src/plugins/calendar.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/calendar.ts b/src/plugins/calendar.ts index 0f09902b9a..225f1cafbb 100644 --- a/src/plugins/calendar.ts +++ b/src/plugins/calendar.ts @@ -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' @@ -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() @@ -351,8 +353,9 @@ export class Calendar { newNotes?: string, newStartDate?: Date, newEndDate?: Date, - options?: CalendarOptions - ) { return; } + filterOptions?: CalendarOptions, + newOptions?: CalendarOptions + ): Promise { return; } /** * Delete an event.