Skip to content

Commit

Permalink
fix(calendar): Fixes createCalendar parameter typing
Browse files Browse the repository at this point in the history
The createCalendar should allow a string or `NameOrOptions`, not `CalendarOptions`
  • Loading branch information
andrewlively authored and danielsogl committed Apr 12, 2018
1 parent 1d9c449 commit 84e0aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 84e0aa1

Please sign in to comment.