Fix params type error

This commit is contained in:
Hevin 2017-12-11 18:44:33 +08:00
parent a0c828a296
commit 509184328d
5 changed files with 5 additions and 5 deletions

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, notificationId: number, extras?: string): Promise<any>;
addLocalNotificationForIOS(delayTime: number, content: string, badge: number, identifierKey: string, extras?: string): 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

@ -61,7 +61,7 @@ var JPush = (function (_super) {
JPush.prototype.resetBadge = function () { return; };
JPush.prototype.setApplicationIconBadgeNumber = function (badge) { return; };
JPush.prototype.getApplicationIconBadgeNumber = function () { return; };
JPush.prototype.addLocalNotificationForIOS = function (delayTime, content, badge, notificationId, extras) { return; };
JPush.prototype.addLocalNotificationForIOS = function (delayTime, content, badge, identifierKey, extras) { return; };
JPush.prototype.deleteLocalNotificationWithIdentifierKeyInIOS = function (identifierKey) { return; };
JPush.prototype.addDismissActions = function (actions, categoryId) { return; };
JPush.prototype.addNotificationActions = function (actions, categoryId) { return; };
@ -218,7 +218,7 @@ var JPush = (function (_super) {
__decorate([
Cordova(),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Number, String, Number, Number, String]),
__metadata("design:paramtypes", [Number, String, Number, String, String]),
__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.0",
"version": "1.0.1",
"description": "JPush support for ionic-native",
"module": "index.js",
"typings": "index.d.ts",