From ac85782184a1f9e2d583b0fd3ad9c919476983b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Thu, 21 Nov 2024 10:36:22 +0900 Subject: [PATCH] fix: add clearNotification to typescript definitions --- types/index.d.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 } /**