Fixed extras to object of addLocalNotificationForIOS

This commit is contained in:
Hevin 2017-12-14 16:47:08 +08:00
parent 4780eafb72
commit b730924d74
6 changed files with 5 additions and 5 deletions

View File

@ -104,7 +104,7 @@ export class JPush extends IonicNativePlugin {
getApplicationIconBadgeNumber(): Promise<any> { return; }
@Cordova()
addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: string): Promise<any> { return; }
addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: object): Promise<any> { return; }
@Cordova()
deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise<any> { return; }

View File

@ -44,7 +44,7 @@ export declare class JPush extends IonicNativePlugin {
resetBadge(): Promise<any>;
setApplicationIconBadgeNumber(badge: number): Promise<any>;
getApplicationIconBadgeNumber(): Promise<any>;
addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: string): Promise<any>;
addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: object): Promise<any>;
deleteLocalNotificationWithIdentifierKeyInIOS(identifierKey: string): Promise<any>;
addDismissActions(actions: Array<object>, categoryId: string): Promise<any>;
addNotificationActions(actions: Array<object>, categoryId: string): Promise<any>;

View File

@ -218,7 +218,7 @@ var JPush = (function (_super) {
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Number, String, Number, String, String]),
__metadata("design:paramtypes", [Number, String, Number, String, Object]),
__metadata("design:returntype", Promise)
], JPush.prototype, "addLocalNotificationForIOS", null);
__decorate([

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "@jiguang-ionic/jpush",
"version": "1.0.1",
"version": "1.0.2",
"description": "JPush support for ionic-native",
"module": "index.js",
"typings": "index.d.ts",