mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-24 20:00:16 +08:00
fix(calendar): Fixes createCalendar parameter typing
The createCalendar should allow a string or `NameOrOptions`, not `CalendarOptions`
This commit is contained in:
parent
1d9c449b24
commit
84e0aa1f94
@ -153,11 +153,11 @@ export class Calendar extends IonicNativePlugin {
|
|||||||
/**
|
/**
|
||||||
* Create a calendar. (iOS only)
|
* 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
|
* @returns {Promise<any>} Returns a Promise
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
createCalendar(nameOrOptions: string | CalendarOptions): Promise<any> {
|
createCalendar(nameOrOptions: string | NameOrOptions): Promise<any> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user