From 84e0aa1f947c7acd0afebf2634862ef46b8d5870 Mon Sep 17 00:00:00 2001 From: Andrew Lively <2755389+andrewlively@users.noreply.github.com> Date: Thu, 12 Apr 2018 11:07:03 -0400 Subject: [PATCH] fix(calendar): Fixes createCalendar parameter typing The createCalendar should allow a string or `NameOrOptions`, not `CalendarOptions` --- src/@ionic-native/plugins/calendar/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/calendar/index.ts b/src/@ionic-native/plugins/calendar/index.ts index bf7e9cf554..d3fc9a425a 100644 --- a/src/@ionic-native/plugins/calendar/index.ts +++ b/src/@ionic-native/plugins/calendar/index.ts @@ -153,11 +153,11 @@ export class Calendar extends IonicNativePlugin { /** * Create a calendar. (iOS only) * - * @param {string | CalendarOptions} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string + * @param {string | NameOrOptions} nameOrOptions either a string name or a options object. If string, provide the calendar name. IF an object, provide a calendar name as a string and a calendar color in hex format as a string * @returns {Promise} Returns a Promise */ @Cordova() - createCalendar(nameOrOptions: string | CalendarOptions): Promise { + createCalendar(nameOrOptions: string | NameOrOptions): Promise { return; }