diff --git a/types/index.d.ts b/types/index.d.ts index 9f4140466..4124e3ff3 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -107,9 +107,17 @@ declare namespace PhonegapPluginPush { /** * Tells the OS to clear all notifications from the Notification Center * @param successHandler Is called when the api successfully clears the notifications. - * @param errorHandler Is called when the api encounters an error when attempting to clears the notifications. + * @param errorHandler Is called when the api encounters an error when attempting to clear the notifications. */ clearAllNotifications(successHandler: () => any, errorHandler: () => any): void + + /** + * Tells the OS to clear the notification that corresponds to the id argument, from the Notification Center + * @param successHandler Is called when the api successfully clears the notification. + * @param errorHandler Is called when the api encounters an error when attempting to clear the notification. + * @param id The ID of the notification that will be cleared. + */ + clearNotification(successHandler: () => any, errorHandler: () => any, id?: number): void } /**