Skip to content

Commit

Permalink
fix: add clearNotification to typescript definitions (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu authored Nov 21, 2024
1 parent 36f6bc7 commit 82464e1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down

0 comments on commit 82464e1

Please sign in to comment.