From e2cbd6f8ae692a074c38eb2dd205b4038babc129 Mon Sep 17 00:00:00 2001 From: heguokai Date: Wed, 25 Jun 2025 11:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=AE=BE=E8=AE=A1=E6=A1=86?= =?UTF-8?q?=E6=9E=B6=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heguokai --- api/@ohos.events.emitter.d.ts | 3 +-- api/commonEvent/commonEventData.d.ts | 3 +-- api/commonEvent/commonEventPublishData.d.ts | 3 +-- api/notification/notificationSubscriber.d.ts | 14 +++----------- 4 files changed, 6 insertions(+), 17 deletions(-) diff --git a/api/@ohos.events.emitter.d.ts b/api/@ohos.events.emitter.d.ts index a36debc317..978f1ab1ee 100644 --- a/api/@ohos.events.emitter.d.ts +++ b/api/@ohos.events.emitter.d.ts @@ -544,10 +544,9 @@ declare namespace emitter { /** * Data carried by the event. * - * @type { ?object } + * @type { ?Record } * @syscap SystemCapability.Notification.Emitter * @crossplatform - * @atomicservice * @since 20 * @arkts 1.2 */ diff --git a/api/commonEvent/commonEventData.d.ts b/api/commonEvent/commonEventData.d.ts index 7b8710b26a..24833aee31 100644 --- a/api/commonEvent/commonEventData.d.ts +++ b/api/commonEvent/commonEventData.d.ts @@ -140,9 +140,8 @@ export interface CommonEventData { /** * The description of the parameters in a common event. * - * @type { ?object } + * @type { ?Record } * @syscap SystemCapability.Notification.CommonEvent - * @atomicservice * @since 20 * @arkts 1.2 */ diff --git a/api/commonEvent/commonEventPublishData.d.ts b/api/commonEvent/commonEventPublishData.d.ts index 40d88120ea..6b71b21cad 100644 --- a/api/commonEvent/commonEventPublishData.d.ts +++ b/api/commonEvent/commonEventPublishData.d.ts @@ -169,9 +169,8 @@ export interface CommonEventPublishData { /** * The description of the parameters in a common event. * - * @type { ?object } + * @type { ?Record } * @syscap SystemCapability.Notification.CommonEvent - * @atomicservice * @since 20 * @arkts 1.2 */ diff --git a/api/notification/notificationSubscriber.d.ts b/api/notification/notificationSubscriber.d.ts index 45fec8ee17..7fa0bd5607 100644 --- a/api/notification/notificationSubscriber.d.ts +++ b/api/notification/notificationSubscriber.d.ts @@ -383,19 +383,11 @@ export interface BadgeEnabledChangedCallback { } /** - * Defines the callback of BadgeEnabledChanged. - * @typedef BadgeEnabledChangedCallback + * Defines the BadgeEnabledChanged callback. + * @param { EnabledNotificationCallbackData } data * @syscap SystemCapability.Notification.Notification + * @systemapi * @since 20 * @arkts 1.2 */ - - /** - * Defines the BadgeEnabledChanged callback. - * @param { EnabledNotificationCallbackData } data - * @syscap SystemCapability.Notification.Notification - * @systemapi - * @since 20 - * @arkts 1.2 - */ export type BadgeEnabledChangedCallback = (data: EnabledNotificationCallbackData) => void; -- Gitee