Skip to content

Commit 84e0aa1

Browse files
andrewlivelydanielsogl
authored andcommitted
fix(calendar): Fixes createCalendar parameter typing
The createCalendar should allow a string or `NameOrOptions`, not `CalendarOptions`
1 parent 1d9c449 commit 84e0aa1

File tree

1 file changed

+2
-2
lines changed
  • src/@ionic-native/plugins/calendar

1 file changed

+2
-2
lines changed

src/@ionic-native/plugins/calendar/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,11 @@ export class Calendar extends IonicNativePlugin {
153153
/**
154154
* Create a calendar. (iOS only)
155155
*
156-
* @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
156+
* @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
157157
* @returns {Promise<any>} Returns a Promise
158158
*/
159159
@Cordova()
160-
createCalendar(nameOrOptions: string | CalendarOptions): Promise<any> {
160+
createCalendar(nameOrOptions: string | NameOrOptions): Promise<any> {
161161
return;
162162
}
163163

0 commit comments

Comments
 (0)