fix(calendar): Fixes createCalendar parameter typing

The createCalendar should allow a string or `NameOrOptions`, not `CalendarOptions`
This commit is contained in:
Andrew Lively 2018-04-12 11:07:03 -04:00 committed by Daniel Sogl
parent 1d9c449b24
commit 84e0aa1f94

View File

@ -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<any>} Returns a Promise
*/
@Cordova()
createCalendar(nameOrOptions: string | CalendarOptions): Promise<any> {
createCalendar(nameOrOptions: string | NameOrOptions): Promise<any> {
return;
}