From 86c29db7691ee2be4efd82c9f66d566fae69e01d Mon Sep 17 00:00:00 2001 From: donglin Date: Tue, 15 Nov 2022 17:18:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donglin Change-Id: I40b4325a85889290ab5c1c88edf00176b1944144 --- api/@ohos.notification.d.ts | 1 - api/@ohos.reminderAgentManager.d.ts | 1 - api/commonEvent/commonEventSubscriber.d.ts | 48 +++++++++++----------- 3 files changed, 24 insertions(+), 26 deletions(-) diff --git a/api/@ohos.notification.d.ts b/api/@ohos.notification.d.ts index de8c1ae964..2c3d321c3e 100644 --- a/api/@ohos.notification.d.ts +++ b/api/@ohos.notification.d.ts @@ -47,7 +47,6 @@ import { NotificationUserInput as _NotificationUserInput } from './notification/ * @name notification * @since 7 * @syscap SystemCapability.Notification.Notification - * @import import notification from '@ohos.notification'; * @permission N/A * @deprecated since 9 * @useinstead ohos.notificationManager and ohos.notificationSubscribe diff --git a/api/@ohos.reminderAgentManager.d.ts b/api/@ohos.reminderAgentManager.d.ts index b96875149f..b66b9fbac3 100644 --- a/api/@ohos.reminderAgentManager.d.ts +++ b/api/@ohos.reminderAgentManager.d.ts @@ -23,7 +23,6 @@ import { NotificationSlot } from './notification/notificationSlot'; * * @since 9 * @syscap SystemCapability.Notification.ReminderAgent - * @import reminderAgentManager from '@ohos.reminderAgentManager'; */ declare namespace reminderAgentManager { /** diff --git a/api/commonEvent/commonEventSubscriber.d.ts b/api/commonEvent/commonEventSubscriber.d.ts index c9e1beb8d7..128dfb42e8 100644 --- a/api/commonEvent/commonEventSubscriber.d.ts +++ b/api/commonEvent/commonEventSubscriber.d.ts @@ -28,7 +28,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getCode(callback: AsyncCallback): void; @@ -36,7 +36,7 @@ export interface CommonEventSubscriber { * Obtains the result code of the current ordered common event. * * @since 7 - * @return Returns code of this common event + * @returns Returns code of this common event */ getCode(): Promise; @@ -46,7 +46,7 @@ export interface CommonEventSubscriber { * @since 7 * @param code Indicates the custom result code to set. You can set it to any value. * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ setCode(code: number, callback: AsyncCallback): void; @@ -55,7 +55,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param code Indicates the custom result code to set. You can set it to any value. - * @return - + * @returns - */ setCode(code: number): Promise; @@ -64,7 +64,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getData(callback: AsyncCallback): void; @@ -73,7 +73,7 @@ export interface CommonEventSubscriber { * * @since 7 * @return - * @return Returns data of this common event + * @returns Returns data of this common event */ getData(): Promise; @@ -83,7 +83,7 @@ export interface CommonEventSubscriber { * @since 7 * @param data Indicates the custom result data to set. You can set it to any character string. * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ setData(data: string, callback: AsyncCallback): void; @@ -92,7 +92,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param data Indicates the custom result data to set. You can set it to any character string. - * @return - + * @returns - */ setData(data: string): Promise; @@ -103,7 +103,7 @@ export interface CommonEventSubscriber { * @param code Indicates the custom result code to set. You can set it to any value. * @param data Indicates the custom result data to set. You can set it to any character string. * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ setCodeAndData(code: number, data: string, callback: AsyncCallback): void; @@ -113,7 +113,7 @@ export interface CommonEventSubscriber { * @since 7 * @param code Indicates the custom result code to set. You can set it to any value. * @param data Indicates the custom result data to set. You can set it to any character string. - * @return - + * @returns - */ setCodeAndData(code: number, data: string): Promise; @@ -122,7 +122,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ isOrderedCommonEvent(callback: AsyncCallback): void; @@ -130,7 +130,7 @@ export interface CommonEventSubscriber { * Checks whether the current common event is an ordered common event. * * @since 7 - * @return Returns true if this common event is ordered, false otherwise + * @returns Returns true if this common event is ordered, false otherwise */ isOrderedCommonEvent(): Promise; @@ -139,7 +139,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ isStickyCommonEvent(callback: AsyncCallback): void; @@ -147,7 +147,7 @@ export interface CommonEventSubscriber { * Checks whether the current common event is a sticky common event. * * @since 7 - * @return Returns true if this common event is sticky, false otherwise + * @returns Returns true if this common event is sticky, false otherwise */ isStickyCommonEvent(): Promise; @@ -156,7 +156,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ abortCommonEvent(callback: AsyncCallback): void; @@ -164,7 +164,7 @@ export interface CommonEventSubscriber { * Aborts the current ordered common event. * * @since 7 - * @return - + * @returns - */ abortCommonEvent(): Promise; @@ -173,7 +173,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ clearAbortCommonEvent(callback: AsyncCallback): void; @@ -181,7 +181,7 @@ export interface CommonEventSubscriber { * Clears the abort state of the current ordered common event * * @since 7 - * @return - + * @returns - */ clearAbortCommonEvent(): Promise; @@ -190,7 +190,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getAbortCommonEvent(callback: AsyncCallback): void; @@ -198,7 +198,7 @@ export interface CommonEventSubscriber { * Checks whether the current ordered common event should be aborted. * * @since 7 - * @return Returns true if this common event is aborted, false otherwise + * @returns Returns true if this common event is aborted, false otherwise */ getAbortCommonEvent(): Promise; @@ -207,7 +207,7 @@ export interface CommonEventSubscriber { * * @since 7 * @param callback Indicate the callback function to receive the common event. - * @return - + * @returns - */ getSubscribeInfo(callback: AsyncCallback): void; @@ -215,7 +215,7 @@ export interface CommonEventSubscriber { * get the CommonEventSubscribeInfo of this CommonEventSubscriber. * * @since 7 - * @return Returns the commonEvent subscribe information + * @returns Returns the commonEvent subscribe information */ getSubscribeInfo(): Promise; @@ -224,7 +224,7 @@ export interface CommonEventSubscriber { * * @since 9 * @param callback Indicate the callback function after the ordered common event is finished. - * @return - + * @returns - */ finishCommonEvent(callback: AsyncCallback): void; @@ -232,7 +232,7 @@ export interface CommonEventSubscriber { * finish the current ordered common event. * * @since 9 - * @return - + * @returns - */ finishCommonEvent(): Promise; } -- Gitee